code
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
SUBROUTINE INITCB DOUBLE PRECISION LONG CHARACTER STRING INTEGER OK COMMON /BLOCK/ LONG, STRING, OK LONG = 1.0 STRING = '2' OK = 3 RETURN END
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/numpy/f2py/tests/src/common/block.f
FORTRAN
mit
224
SUBROUTINE CTPSV(UPLO,TRANS,DIAG,N,AP,X,INCX) * .. Scalar Arguments .. INTEGER INCX,N CHARACTER DIAG,TRANS,UPLO * .. * .. Array Arguments .. COMPLEX AP(*),X(*) * .. * * Purpose * ======= * * CTPSV solves one of the systems of equations * * A*x = b, or A'...
dcherian/tools
eigen/blas/ctpsv.f
FORTRAN
mit
11,427
!---------------------------------------------------------------------- subroutine IO_SetnMLTs(nMLTsIn) use ModEIE_Interface implicit none integer, intent(in) :: nMLTsIn IOi_NeednMLTs = nMLTsIn end subroutine IO_SetnMLTs !---------------------------------------------------------------------- subroutine IO_S...
dpawlows/MGITM
util/EMPIRICAL/srcIE/EIE_IoLibrary.f90
FORTRAN
mit
16,658
module dual_numbers use constants, only : rk implicit none private type, public :: dual_t real(rk) :: re, du end type dual_t ! =========================================== dual number operator overloads public :: assignment (=) interface assignment (=) module proce...
dzhang314/dznl
legacy/f90/dual_numbers.f90
FORTRAN
mit
6,349
module set_precision implicit none integer, parameter :: i18=selected_int_kind(18); integer, parameter :: sp =selected_real_kind(6, 37) integer, parameter :: dp =selected_real_kind(15, 307) end module set_precision module time use set_precision implicit none ! real(kind=dp) :: ...
bthakur/benchmarks
mpi/lanczos/src/timing_lapack.f90
FORTRAN
mit
5,150
C C C SUBROUTINE WTFNDT I (WDMSFL,DSN,GPFLG, O TDSFRC,SDAT,EDAT,RETCOD) Cf2py intent(in) WDMSFL Cf2py intent(in) DSN Cf2py intent(in) GPFLG Cf2py intent(out) TDSFRC Cf2py intent(out) SDAT Cf2py intent(out) EDAT Cf2py intent(out) RETCOD C C + + + PURPOSE + + +...
timcera/wdmtoolbox
wdm_support/WDTMS2.f
FORTRAN
bsd-3-clause
41,094
C+CLOSE_SF subroutine close_sf ( lun, s ) C C Closes a sample file and all sources associated with it. C C Given: C Logical unit number of sample file integer lun C Returned: C Status - must be zero on entry. integer s C C This routine...
CavendishAstrophysics/postmortem
src/samplib/close_sf.f
FORTRAN
bsd-3-clause
1,692
*> \brief <b> SSTEVX computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices</b> * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SSTEVX + dependencies *> <a...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/sstevx.f
FORTRAN
mit
14,033
* ******************************************** * * * * * gen_PBE96_c_full_unrestricted * * * * * ******************************************** * * This function returns the PBE96 correlation * energy density, ce, and its derivatives with respect * to nup, ndn, |grad nup|,...
rangsimanketkaew/NWChem
src/nwpw/pspw/lib/exchange-correlation/pbe96c.f
FORTRAN
mit
22,098
program helloworld print *,'Viva Peron!' end program helloworld
3manuek/viva-peron
f/fortran.f90
FORTRAN
mit
63
module mod_diff ! Module that provides finite difference functions. use iso_fortran_env, only: real32 implicit none private public :: diffc, diffu contains pure function diffc(x) result(dx) ! Returns a centered difference of a 1-d array, ! with periodic boundary con...
kkirstein/proglang-playground
Fortran/ModernFortran/tsunami/mod_diff.f90
FORTRAN
mit
1,169
c leemodi222 c iesc=0 :lee dos atmosferas modelo contando puntos en tau de la 1 c iesc=1 :escribe dos atmosferas modelo c ntau : numero de puntos en tau c tau : log10(tau) c ierror=0 O.K. ierror=1 el modelo 1 no existe, ierror=2 el modelo 2 no existe c ierror=3 no existen los modelos 1 ni 2 subroutine leemodi222(ies...
cdiazbas/SIRcode
SIR2015/leemodi222.f
FORTRAN
mit
7,692
character*100 c c = 'line\ break' c = 'LINE\ $ BREAK' c = '\142\040\40\132_\x5ag' c = 'abcdefg' c = "abcdefg" c = c// "don't" c = 'He said "yes," I think' c = "\n, \\" c = "\"" c = '\' !' C the next one tests unix_backslash c = '\'!' ...
OS2World/DEV-FORTRAN-UTIL-ftnchek
test/backslash.f
FORTRAN
mit
328
module mandelbrot use, intrinsic :: iso_fortran_env, only : dp=>real64,i64=>int64, stderr=>error_unit use perf, only: sysclock2ms Implicit None integer, parameter :: wp=dp contains elemental integer function mandel(z0) result(r) complex(wp), intent(in) :: z0 complex(wp) :: c, z integer :: n integer, parameter :: ma...
scienceopen/python-performance
mandelbrot/mandel.f90
FORTRAN
mit
1,777
SUBROUTINE LAGET C GET LOOK-AHEAD SYMBOLS FOR ALL PRODUCTIONS OF ALL STATES IN QUEU C 2005-03-29: demingle MEMSETS C INCLUDE 'PARS.f' INCLUDE 'ITES.f' INCLUDE 'MEMS.f' INCLUDE 'SETS.f' INCLUDE 'STAS.f' INTEGER*2 I = ,ENBLOC ! = 0 (1) FOR A INCREMENTAL (...
gfis/jextra
legacy/bofor_2005/LAGET.f
FORTRAN
apache-2.0
1,219
subroutine shpMeasure (x, ien, meshq, tetVolm) c--------------------------------------------------------- c This subroutine calculate the shape quality c based on the mean ratio method. c c--------------------------------------------------------- c include "common.h" c real*8 meshq(npro) ...
yangf4/phasta
phSolver/compressible/shpmeasure.f
FORTRAN
bsd-3-clause
5,829
C Copyright (c) 2008-2017 National Technology & Engineering Solutions C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C Redistribution and use in source and binary forms, with or without C modification, are permitted provi...
nschloe/seacas
packages/seacas/applications/gjoin/gj_expxyz.f
FORTRAN
bsd-3-clause
15,795
function gamma_dist(r) use h_params ! PI use h_dist_struct use numerical_libraries, only: gamma implicit none real,intent(in) :: r real :: gamma_dist ! s=1/lambda ! mean=s*t ! standard deviation=s*sqrt(t) ! intent(in) ! gp%p1=mu and p2=sigma ! Local Vars real :: x,gfn,s,t ! Begin t=gp%...
RobinsonLab/GlobalCurve
utilities/gamma_dist.f90
FORTRAN
apache-2.0
491
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! module mo_column contains subroutine compute_column use kind, only: i2, i4 end subroutine compute_column end module mo_column
clementval/claw-compiler
test/driver/dependencies3/mo_col.f90
FORTRAN
bsd-2-clause
230
C-------GF 08.11.1980------------------------------ P A R S IMPLICIT NONE INTEGER*2 XXBUCH,XXCODH,XXITEH,XXLINH,XXMEMH,XXPARH PARAMETER (XXBUCH=127) PARAMETER (XXCODH=128) PARAMETER (XXITEH=600) PARAMETER (XXLINH=41) PARAMETER (XXMEMH=1200) PARAMETER (XXPARH=30) ...
gfis/jextra
legacy/bofor_2005/PARS.f
FORTRAN
apache-2.0
2,070
SUBROUTINE LOAD (LDTYP,LDTAG,LDTAGF,LDTAGT,ZLR,ZLI,ZLC) C C LOAD CALCULATES THE IMPEDANCE OF SPECIFIED SEGMENTS FOR VARIOUS C TYPES OF LOADING C COMPLEX ZARRAY,ZT,TPCJ,ZINT COMMON /DATA/ LD,N1,N2,N,NP,M1,M2,M,MP,X(300),Y(300),Z(300),SI(300 1),BI(300),ALP(300),BET(300),ICON1(300),ICON2(300...
ViperScience/ViperNEC
NEC2/src/nec/load.f
FORTRAN
apache-2.0
4,342
program volatile_doctest use vecfor_R16P type(vector_R16P) :: pt pt = ex_R16P + ey_R16P + ez_R16P print "(L1)", pt < 4_I8P endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R16P/vecfor_R16P-doctest-123.f90
FORTRAN
bsd-2-clause
153
! MD5 of template: b74cf17929540ac05b6b5addd22f9262 ! Stokes vector related routines ! ! ------------------------------------------------------------------------------ ! Copyright (c) 2009-13, Thomas P. Robitaille ! ! All rights reserved. ! ! Redistribution and use in source and binary forms, with or without ! modifica...
astrofrog/fortranlib
src/type_stokes.f90
FORTRAN
bsd-2-clause
8,735
!------------------------------------------------------------- ! Copyright (c) 2013-2014 Yuta Kawai. All rights reserved. !------------------------------------------------------------- !> @brief Main program of Dennou-OGCM. !! !! @author Yuta Kawai !! @since 2013 !! !! program ogcm_main ! ¥â¥¸¥å¡¼¥ë°úÍÑ; Use statem...
ywkawai/Dennou-OGCM
model/old/sogcm/ogcm_main.f90
FORTRAN
mit
1,715
100 program t 200 do 400 i=1,3,2 300 print *,i 400 end do 500 end program t
thender/ppp
tests/t0091r/t.f90
FORTRAN
apache-2.0
76
MODULE probData IMPLICIT NONE INTEGER, PARAMETER :: probDim=3 REAL(8), DIMENSION(probDim,probDim) :: mat = reshape((/ 4, 1, -1, 1, 4, 1, -1, 1, 4 /),shape(mat)) REAL(8), DIMENSION(probDim) :: q = (/ 3, 31, -10 /) END MODULE probData PROGRAM linmcp USE probData IMPLICIT NONE INTEGER :: n, nnz, i, status ...
sheim/drake
mac64/examples/F90/linmcp.f90
FORTRAN
bsd-3-clause
1,603
*> \brief \b SLARHS * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE SLARHS( PATH, XTYPE, UPLO, TRANS, M, N, KL, KU, NRHS, * A, LDA, X, LDX, B, LDB, ...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/LIN/slarhs.f
FORTRAN
bsd-3-clause
12,420
!****h* ROBODoc/H5GLOBAL ! ! NAME ! MODULE H5GLOBAL ! ! FILE ! src/fortran/H5f90global.f90 ! ! PURPOSE ! This module is used to pass C stubs for H5 Fortran APIs. The C stubs are ! packed into arrays in H5_f.c and these arrays are then passed to Fortran. ! This module then uses EQUIVALENCE to assign elements of the...
opencb/hpg-pore
src/main/third-party/hdf5-1.8.14/fortran/src/H5f90global.f90
FORTRAN
apache-2.0
33,040
*> \brief \b ZERRTZ * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE ZERRTZ( PATH, NUNIT ) * * .. Scalar Arguments .. * CHARACTER*3 PATH * INTEGER...
yaowee/libflame
lapack-test/3.5.0/LIN/zerrtz.f
FORTRAN
bsd-3-clause
4,030
SUBROUTINE ZBESJ(ZR, ZI, FNU, KODE, N, CYR, CYI, NZ, IERR) C***BEGIN PROLOGUE ZBESJ C***DATE WRITTEN 830501 (YYMMDD) C***REVISION DATE 890801 (YYMMDD) C***CATEGORY NO. B5K C***KEYWORDS J-BESSEL FUNCTION,BESSEL FUNCTION OF COMPLEX ARGUMENT, C BESSEL FUNCTION OF FIRST KIND C***AUTHOR AMOS, DO...
certik/fortran-utils
src/legacy/amos/zbesj.f
FORTRAN
mit
11,579
! gro2cfg ! ! Created on: Mar 9, 2012 ! Author: Pedro Duarte and Pedro Morgado ! License: MIT License ! Version: 0.2.1 ! Description: Convert a GROMACS .gro file into a DL Poly CONFIG file. program gro2cfg implicit none ! Variable declaration character :: arg*20, filename*80, outfilename*80, name*20, m...
xipasduarte/simutil
source/gro2cfg.f90
FORTRAN
mit
3,635
great_rsd(k1,l1). great_rsd(a1,t1). great_rsd(f1,a1). great_rsd(a1,h1). great_rsd(p1,x1). great_rsd(cc1,kk1). great_rsd(f1,kk1). great_rsd(e1,dd1). great_rsd(jj1,dd1). great_rsd(p1,kk1). great_rsd(t1,h1). great_rsd(v1,hh1). great_rsd(c1,x1). great_rsd(c1,jj1). great_rsd(v1,g1). great_rsd(p1,w1). great_rsd(u1,g1). great...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_scopolamine_noiseless/incremental8/test2.f
FORTRAN
apache-2.0
465
program t i=3 if (i.eq.1) then print *,1 else if (i.eq.2) then print *,2 else if (i.eq.3) then print *,3 end if end program t
thender/ppp
tests/t0075r/t.f90
FORTRAN
apache-2.0
148
! RUN: %S/test_errors.sh %s %t %f18 module m public i integer, private :: j !ERROR: The accessibility of 'i' has already been specified as PUBLIC private i !The accessibility of 'j' has already been specified as PRIVATE private j end module m2 interface operator(.foo.) module procedure ifoo end int...
google/llvm-propeller
flang/test/Semantics/resolve11.f90
FORTRAN
apache-2.0
1,344
*> \brief \b CDRGSX * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CDRGSX( NSIZE, NCMAX, THRESH, NIN, NOUT, A, LDA, B, * AI, BI, Z, Q, ALPHA, BETA,...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/EIG/cdrgsx.f
FORTRAN
bsd-3-clause
33,130
subroutine e3ql (yl, dwl, shp, shgl, & xl, ql, xmudmi, & sgn ) c c---------------------------------------------------------------------- c c This routine computes the local diffus...
SCOREC/phasta
phSolver/incompressible/e3ql.f
FORTRAN
bsd-3-clause
9,269
SUBROUTINE DLASSQ( N, X, INCX, SCALE, SUMSQ ) * * -- LAPACK auxiliary routine (version 2.0) -- * Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., * Courant Institute, Argonne National Lab, and Rice University * October 31, 1992 * * .. Scalar Arguments .. INTEGER INCX, ...
mcflugen/roms-lite
src/roms/Lib/ARPACK/LAPACK/dlassq.f
FORTRAN
mit
2,662
SUBROUTINE grat1(a,x,r,p,q,eps) C .. Scalar Arguments .. DOUBLE PRECISION a,eps,p,q,r,x C .. C .. Local Scalars .. DOUBLE PRECISION a2n,a2nm1,am0,an,an0,b2n,b2nm1,c,cma,g,h,j,l,sum, + t,tol,w,z C .. C .. External Functions .. DOUBLE PRECISION erf,erfc1,ga...
matthew-brett/scipy
scipy/special/cdflib/grat1.f
FORTRAN
bsd-3-clause
2,500
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC C C C SUBROUTINE BLOCH C C ...
nicoguaro/BLOCH_FEM
springs/bloch.for
FORTRAN
mit
12,049
MODULE neural_type TYPE unit REAL value REAL grad END TYPE unit END MODULE PROGRAM nn USE neural_type IMPLICIT NONE TYPE (unit) :: a, b, c, x, y TYPE (unit) :: z1, z2, z3, z4, z5 a%value = 1.0 b%value = 2.0 c%value = -3.0 x%value = -1.0 y%value = 3.0 ! Forward pass CALL mul_gate('f...
Ragnamus/sci-comp
solid_state/nn.f95
FORTRAN
mit
2,500
C++++++++++++++++ DOUBLE PRECISION VERSION 3DP (JUN 1988) ++++++++++++++MAIN0001 C SPLMOD. MAIN SUBPROGRAM. MAIN0002 C FOR THE ANALYSIS OF SUMS OF ONE-PARAMETER FUNCTIONS. MAIN0003 C APPROXIMATES OPTIONALLY THE MODEL WITH CUBIC B-SPLINES MAIN0...
OpenVnmrJ/OpenVnmrJ
src/DOSY/splmod.for
FORTRAN
apache-2.0
488,375
!STARTOFREGISTRYGENERATEDFILE 'Waves2_Types.f90' ! ! WARNING This file is generated automatically by the FAST registry. ! Do not edit. Your changes to this file will be lost. ! ! FAST Registry (v3.02.00, 23-Jul-2016) !***********************************************************************************************...
NWTC/FAST
Source/dependencies/HydroDyn/Waves2_Types.f90
FORTRAN
apache-2.0
175,951
subroutine impmon(nmon) c c + + + PURPOSE + + + c c SR IMPMON outputs and resets monthly impoundment variables. c c Called from: SR WSHDRV c Author(s): Jim Ascough II c Reference in User Guide: c c Version: c Date recoded: c Recoded by: c c + + + KEYWORDS + + + c c + + + PA...
akrherz/idep
src/wepp2012-src/impmon.for
FORTRAN
mit
4,810
!------------------------------------------------------------- ! Copyright (c) 2013-2013 Kawai Yuta. All rights reserved. !------------------------------------------------------------- !> @brief a template module !! !! @author Kawai Yuta !! !! module Exp_W94_Case2_mod ! モジュール引用; Use statements ! use dc_types ...
ywkawai/Dennou-OGCM
model/old/sogcm/experiment/exp_W94_Case2/Exp_W94_Case2_mod.f90
FORTRAN
mit
1,759
c general purpose Bayesian calculation program c c input: poster = fortran function (at the end of this program) to c compute posterior distribution at a given set of parameter c values. First call is to read data and create crude c parameter estimates c data fi...
acbecker/pyhm
data/arm/cong3/bayes.f
FORTRAN
mit
26,250
c c -------------------------------------------------------------- c subroutine advanc (level,nvar,dtlevnew,vtime,naux) c use amr_module implicit double precision (a-h,o-z) logical vtime integer omp_get_thread_num, omp_get_max_threads integer mythread/0/, maxthreads/1/ int...
clawpack/seismic
3d/sloping_fault/advanc_noqad.f
FORTRAN
bsd-2-clause
10,787
*> \brief \b SCHKAA * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * PROGRAM SCHKAA * * *> \par Purpose: * ============= *> *> \verbatim *> *> SCHKAA is the main test program for th...
yaowee/libflame
lapack-test/3.5.0/LIN/schkaa.f
FORTRAN
bsd-3-clause
30,923
*> \brief \b CGET23 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CGET23( COMP, ISRT, BALANC, JTYPE, THRESH, ISEED, * NOUNIT, N, A, LDA, H, W, W1,...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/EIG/cget23.f
FORTRAN
bsd-3-clause
27,292
c this file contains the following user-callable routines: c c c routine iddr_rsvd computes the SVD, to a specified rank, c of a matrix specified by routines for applying the matrix c and its transpose to arbitrary vectors. c This routine is randomized. c c cccccccccccccccccccccccccccccccc...
kmspriyatham/symath
scipy/scipy/linalg/src/id_dist/src/iddr_rsvd.f
FORTRAN
apache-2.0
5,104
module module_options use cosmo implicit none character(len=*), parameter :: version = 'v3.0' character(len=*), parameter :: author = 'Quim Ballabrera' logical :: fhlp = .False. type(type_help) :: HLP ! ... Input files: ! ... logical :: verb ...
quimbp/cosmo
src/clm/options.f90
FORTRAN
mit
14,238
subroutine add_noise use params implicit none integer :: i,j,seed call SYSTEM_CLOCK(COUNT=seed) call srand(seed) do i = -NX/2, NX/2 do j = -NY/2, NY/2 GRID(i,j) = GRID(i,j) + GRID(i,j)*CMPLX((RAND()*noiseamp)& -(noiseamp/2.0d0),(RAND()*nois...
extigy/2D-GP
utils.f95
FORTRAN
mit
17,806
active(e3).
manoelfranca/cilppp
foldsCreator/files/test24.f
FORTRAN
apache-2.0
12
!********************************************************************************************************************************** ! LICENSING ! Copyright (C) 2013-2016 National Renewable Energy Laboratory ! ! This file is part of the NWTC Subroutine Library. ! ! Licensed under the Apache License, Version 2....
NWTC/NWTC_Library
source/ModMesh_Types.f90
FORTRAN
apache-2.0
14,190
!****h* ROBODoc/H5R ! ! NAME ! MODULE H5R ! ! FILE ! fortran/src/H5Rff.f90 ! ! PURPOSE ! This file contains Fortran interfaces for H5R functions. It includes ! all the functions that are independent on whether the Fortran 2003 functions ! are enabled or disabled. ! ! ! COPYRIGHT ! * * * * * * * * * * * * * * * * *...
gnu3ra/SCC15HPCRepast
INSTALLATION/hdf5-1.8.15-patch1/fortran/src/H5Rff.f90
FORTRAN
bsd-3-clause
4,365
subroutine sedseg(dslost,jun,iyear,noout) c******************************************************************* c * c This subroutine is called from SR SEDOUT and breaks the * c hillslope profile into detachment or deposition segments. ...
akrherz/idep
src/wepp2012-src/sedseg.for
FORTRAN
mit
24,108
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! PROGRAM testverbatim !$claw verbatim IF (.FALSE.) THEN PRINT*,'These lines' PRINT*,'are not printed' PRINT*,'if the the CLAW Compiler has processed' PRINT*,'the file.' !$claw verbatim END IF END PROGRAM testver...
clementval/claw-compiler
test/driver/verbatim_directive/original_code.f90
FORTRAN
bsd-2-clause
326
C -------------------------------------------------------------------- C SUNDIALS Copyright Start C Copyright (c) 2002-2019, Lawrence Livermore National Security C and Southern Methodist University. C All rights reserved. C C See the top-level LICENSE and NOTICE files for details. C C SPDX-L...
PSUmodeling/MM-PIHM
cvode/examples/cvode/fcmix_parallel/fcvDiag_non_p.f
FORTRAN
mit
6,585
*> \brief \b STPCON * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download STPCON + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/stpcon.f...
grisuthedragon/OpenBLAS
lapack-netlib/SRC/stpcon.f
FORTRAN
bsd-3-clause
7,417
SUBROUTINE CDRVLS( DOTYPE, NM, MVAL, NN, NVAL, NNS, NSVAL, NNB, $ NBVAL, NXVAL, THRESH, TSTERR, A, COPYA, B, $ COPYB, C, S, COPYS, WORK, RWORK, IWORK, $ NOUT ) * * -- LAPACK test routine (version 3.1.1) -- * Univ. of Tennessee, Univ. of Cal...
maxhutch/magma
testing/lin/cdrvls.f
FORTRAN
bsd-3-clause
25,129
*> \brief \b DTRTRS * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DTRTRS + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dtrtr...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/dtrtrs.f
FORTRAN
mit
6,395
subroutine pderhs(t) ************************************************************************ * * Inner products for gasdynamics. * * u1(.,1) == mass density, * u2(.,2) == momentum density, * u3(.,3) == total energy density (internal plus kinetic) * * Each equation is in conservation law form * * ...
mfeproject/legacy-gwmfe
gwmfe1ds/navier-stokes/pde.f
FORTRAN
mit
3,649
program test use FoX_wxml, only : xmlf_t, xml_OpenFile, xml_Close use FoX_wxml, only : xml_NewElement use FoX_common, only : FoX_set_fatal_errors implicit none character(len=*), parameter :: filename = 'test.xml' type(xmlf_t) :: xf call FoX_set_fatal_errors(.true.) call xml_OpenFile(filename, xf) c...
wilsonCernWq/Simula
fortran/utils/FoX-4.1.2/wxml/test/test_xml_NewElement_6.f90
FORTRAN
mit
391
! Contains a number of useful functions module utility_module implicit none ! String manipulation character( * ), private, parameter :: LOWER_CASE = 'abcdefghijklmnopqrstuvwxyz' character( * ), private, parameter :: UPPER_CASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' contains ! Returns number of argument...
ForestClaw/forestclaw
src/solvers/fc2d_geoclaw/geolib_source/utility_module.f90
FORTRAN
bsd-2-clause
7,399
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! ! ! Simple program to test the loop-fusion directive with collapse clause ! PROGRAM LOOP_FUSION CALL clawloop END SUBROUTINE clawloop IMPLICIT NONE INTEGER :: i INTEGER :: j INTEGER :: k INTEGER :: iend = 2 IN...
clementval/claw-compiler
test/loops/hoist_cleanup_clause_for_openacc_only/original_code.f90
FORTRAN
bsd-2-clause
943
subroutine strlen(str,MAXLEN,lostr) C%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% C % C Copyright (C) 1996, The Board of Trustees of the Leland Stanford % C Junior University. All rights reserved. ...
fcecinati/QUICS_UOB
visim/visim_src/gslib/strlen.f
FORTRAN
bsd-2-clause
1,483
!-------------------------------------------------------------------------------------- ! !Copyright (C) 2014 TopCoder Inc., All Rights Reserved. ! !-------------------------------------------------------------------------------------- !----------------------------------------------------------------------------------...
NREL/OpenWARP
source/NemohImproved/Nemoh/Solver/Core/OUTPUT.f90
FORTRAN
apache-2.0
3,353
subroutine setprob implicit double precision (a-h,o-z) character*25 fname common /cparam/ rho,bulk,cc,zz common /cwidth/ width c c # Set the material parameters for the acoustic equations c c iunit = 7 fname = 'setprob.data' c # open the unit with new routine from Claw...
clawpack/clawpack-4.x
doc/sphinx/example-acoustics-2d/setprob.f
FORTRAN
bsd-3-clause
683
subroutine md * (n, ia,ja, max, v,l, head,last,next, mark, flag) clll. optimize c*********************************************************************** c md -- minimum degree algorithm (based on element model) c*********************************************************************** c c description c c...
kmspriyatham/symath
scipy/scipy/integrate/odepack/md.f
FORTRAN
apache-2.0
5,303
subroutine mdi * (n, ia,ja, max,v,l, head,last,next, mark,tag, flag) clll. optimize c*********************************************************************** c mdi -- initialization c*********************************************************************** integer ia(1), ja(1), v(1), l(1), head(1)...
kmspriyatham/symath
scipy/scipy/integrate/odepack/mdi.f
FORTRAN
apache-2.0
1,953
*> \brief \b CLAVSY * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CLAVSY( UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B, * LDB, INFO ) * * .. ...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/clavsy.f
FORTRAN
bsd-3-clause
16,137
MODULE PE2D_ATMOS USE PE2D_TYPE IMPLICIT NONE !----------------------------------------------------------- CONTAINS !----------------------------------------------------------- FUNCTION ATMLIN(C0,A,Z) RESULT(C) IMPLICIT NONE REAL(DP), INTENT(IN) :: C0, A, Z REAL(DP) :: C C = C0+Z*A END FUNCTION ATMLIN !----...
codorkh/infratopo
Parabolic_Equation/2DPE/SRC/MODULES/PE2D_ATMOS.f03
FORTRAN
mit
1,120
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Copyright (c) 2021 Advanced Micro Devices, Inc. ! ! Permission is hereby granted, free of charge, to any person obtaining a copy ! of this software and associated documentation files (the "Software"), to deal ! in the Software without res...
ROCmSoftwarePlatform/rocSPARSE
clients/samples/example_fortran_gtsv.f90
FORTRAN
mit
7,854
C*GRDATE -- get date and time as character string (VMS) C+ SUBROUTINE GRDATE(STRING, L) CHARACTER*(*) STRING INTEGER L C C Return the current date and time, in format 'dd-Mmm-yyyy hh:mm'. C To receive the whole string, the STRING should be declared C CHARACTER*17. C C Arguments: C STRING...
RobinsonLab/pgplot
sys_vms/grdate.f
FORTRAN
apache-2.0
843
program volatile_doctest use vecfor_R8P type(vector_R8P) :: pt(0:2) pt(1) = 1 * ex_R8P + 1 * ey_R8P + 1 * ez_R8P pt(2) = pt(1) + 1 pt(0) = pt(1) - pt(2) print "(3(F4.1,1X))", pt(0)%x, pt(0)%y, pt(0)%z endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R8P/vecfor_R8P-doctest-84.f90
FORTRAN
bsd-2-clause
233
*> \brief \b ZSTT21 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE ZSTT21( N, KBAND, AD, AE, SD, SE, U, LDU, WORK, RWORK, * RESULT ) * * .. S...
xianyi/OpenBLAS
lapack-netlib/TESTING/EIG/zstt21.f
FORTRAN
bsd-3-clause
6,913
REAL FUNCTION DCAL(RCELL,IH,IK,IL) IMPLICIT NONE C REAL RCELL(6) REAL RH,RK,RL INTEGER IH,IK,IL C RH = FLOAT(IH) RK = FLOAT(IK) RL = FLOAT(IL) C DCAL = SQRT(RH*RH*RCELL(1)*RCELL(1) + & RK*RK*RCELL(2)*RCELL(2) + & RL*RL*RCELL(3)*RCELL...
scattering-central/CCP13
software/lsqint/DCAL.f
FORTRAN
bsd-3-clause
538
subroutine SHRotateCoef(x, cof, rcof, dj, lmax) !------------------------------------------------------------------------------- ! ! This subroutine will rotate a set of spherical harmonic coefficients (see ! documentation in SHRotateRealCoef for a description of how rotation angles ! are defined.) All angles a...
pochoi/SHTOOLS
src/SHRotateCoef.f95
FORTRAN
bsd-3-clause
4,943
*> \brief \b CHPRFS * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download CHPRFS + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/chprfs.f...
buffer51/OpenBLAS
lapack-netlib/SRC/chprfs.f
FORTRAN
bsd-3-clause
13,437
*> \brief \b DPFTRI * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DPFTRI + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dpftri.f...
grisuthedragon/OpenBLAS
lapack-netlib/SRC/dpftri.f
FORTRAN
bsd-3-clause
13,430
*> \brief \b SLAG2D converts a single precision matrix to a double precision matrix. * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SLAG2D + dependencies *> <a href="http://www.netlib.org/cgi-bin...
mverleg/1957
lib/lapack/slag2d.f
FORTRAN
bsd-3-clause
3,518
*> \brief \b CSYTRF * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download CSYTRF + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/csytr...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/csytrf.f
FORTRAN
mit
11,076
*> \brief \b SDRVGT * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE SDRVGT( DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, A, AF, * B, X, XACT, WORK, RWO...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/sdrvgt.f
FORTRAN
bsd-3-clause
19,178
!----------------------------------------------------------------------------! ! ! ! Fortran Coarray MicroBenchmark Suite - Version 1.0 ! ! ! ! D...
cresta-eu/CAF_BENCH
cafclock.f90
FORTRAN
apache-2.0
2,893
great_ne(p1,dd1). great_ne(y1,i1). great_ne(p1,k1). great_ne(k1,m1). great_ne(bb1,c1). great_ne(t1,ff1). great_ne(v1,h1). great_ne(z1,y1). great_ne(f1,i1). great_ne(ii1,f1). great_ne(t1,x1). great_ne(dd1,bb1). great_ne(x1,v1). great_ne(hh1,x1). great_ne(bb1,f1). great_ne(t1,k1). great_ne(u1,w1). great_ne(ee1,i1). great...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_anime_noiseless/incremental10/test4.f
FORTRAN
apache-2.0
598
program volatile_doctest use vecfor_R8P type(vector_R8P) :: pt pt = ex_R8P + ey_R8P + ez_R8P print "(L1)", pt <= 4_I4P endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R8P/vecfor_R8P-doctest-140.f90
FORTRAN
bsd-2-clause
149
program volatile_doctest use vecfor_R4P type(vector_R4P) :: pt(0:1) pt(1) = 1 * ex_R4P + 2 * ey_R4P + 1 * ez_R4P pt(0) = pt(1) + 2._R16P print "(3(F3.1,1X))", abs(pt(0)%x), abs(pt(0)%y), abs(pt(0)%z) endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R4P/vecfor_R4P-doctest-70.f90
FORTRAN
bsd-2-clause
231
C LAST UPDATE 11/06/89 C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C SUBROUTINE INTEG IMPLICIT NONE C C PURPOSE: ALLOW USER TO SELECT A RECTANGULAR SECTION OF THE IMAGE, C INTEGRATE OVER THAT SECTION, AND PLOT THE RESULT OF THE C TIME COURSE. C INCLUD...
scattering-central/CCP13
bsl/integ.f
FORTRAN
bsd-3-clause
6,452
subroutine ComputeDm(dllm, lmax, m, theta0, exitstatus) !------------------------------------------------------------------------------ ! ! This routine will compute the kernel D for the space-concentration ! problem of a spherical cap for a given spherical harmonic order. ! (When m /= 0, the eigenfunctions will ...
MMesch/SHTOOLS
src/ComputeDm.f95
FORTRAN
bsd-3-clause
4,193
!-------------------------------------------------------------------------------------- ! !Copyright (C) 2014 TopCoder Inc., All Rights Reserved. ! !-------------------------------------------------------------------------------------- !----------------------------------------------------------------------------------...
NREL/OpenWARP
source/NemohImproved/Nemoh/Solver/Core/COMPUTE_GREEN_INFD.f90
FORTRAN
apache-2.0
30,235
C { dg-do run } C Tests fix for PR29099 - SECNDS intrinsic wrong result with no delay. C Note1: The test uses +/-20ms accuracy in the check that C date_and_time and secnds give the same values. C C Contributed by Paul Thomas <pault@gcc.gnu.org> C character*20 dum1, dum2, dum3 real t1, t2 real dat1, d...
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/gcc/testsuite/gfortran.dg/secnds-1.f
FORTRAN
bsd-3-clause
925
PROGRAM WDECAY *-------------------- * Project SANC, an extraction from a manually written * code "eeffLib" v0.20 * Authors: D.Yu. Bardin and L.V. Kalinovskaya *------------------- IMPLICIT NONE! *------------------- INTEGER*4 ALEM,ALE2,VPOL,QCDC,ITOP,BOXD,DIAG,GAMS,WEAK,IMOMS IN...
lukaszgaza/winhacplusplus
src/utils/SANC/ewcdec/W_decay_main.f
FORTRAN
mit
2,930
subroutine ksunsc (x,sx,scale,ndv) implicit double precision (a-h,o-z) dimension x(*),sx(*),scale(ndv,2) c c routine to un-scale design variables before returning c to the real world c c author - Gregory A. Wrenn c location - Lockheed Engineering and Sciences Co. ...
DailyActie/Surrogate-Model
01-codes/pyOpt-1.2.0/pyOpt/pyKSOPT/source/ksunsc.f
FORTRAN
mit
562
subroutine array_add(dst, src1, src2, k, sz) implicit none integer,intent(in):: sz real,intent(in):: src1(sz), src2(sz), k real,intent(out):: dst(sz) dst = (src1 + src2) * k end subroutine array_add
earth2001y/fdtd
src/core/array_add.f90
FORTRAN
mit
214
MODULE MOD_WRVEL CONTAINS FUNCTION WRVEL(R) IMPLICIT NONE real*8, intent(in) :: R real*8 :: WRVEL real*8 :: RCON,VPAR1,VPAR2,BETA,VFINAL,VMIN,HSCALE COMMON/VELPAR/ VFINAL,VMIN,BETA,VPAR1,VPAR2,RCON,HSCALE IF (R .LE. 1...
rtagirov/nessy
src/wrvel.for
FORTRAN
mit
637
program aa x%a = 1 <caret>a = 2 write(*,*) x%a end
satamas/fortran-plugin
src/test/resources/resolve/Implicit3.f95
FORTRAN
apache-2.0
62
C ***************************************************************** C * Compute a 2-body orbit * C ***************************************************************** PROGRAM ORBITS IMPLICIT NONE INTEGER*4 I INTEGER J INTEGER ILUN,OLUN REAL*8 R0(3),R1(3) REAL*8 F0(3),F1(...
jguillaumes/orbit-examples
fortran/orbits.f
FORTRAN
bsd-3-clause
1,937
*> \brief \b DGTTRF * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DGTTRF + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dgttr...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/dgttrf.f
FORTRAN
mit
6,585
! RUN: %S/test_symbols.sh %s %t %f18 ! Test host association in internal subroutine of main program. !DEF: /main MainProgram program main !DEF: /main/x ObjectEntity INTEGER(4) integer x !DEF: /main/s (Subroutine) Subprogram call s contains !REF: /main/s subroutine s !DEF: /main/s/y (Implicit) ObjectEntity REAL...
google/llvm-propeller
flang/test/Semantics/symbol03.f90
FORTRAN
apache-2.0
591
*> \brief \b CERRPS * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CERRPS( PATH, NUNIT ) * * .. Scalar Arguments .. * INTEGER NUNIT * CHARACTER...
buffer51/OpenBLAS
lapack-netlib/TESTING/LIN/cerrps.f
FORTRAN
bsd-3-clause
3,783
SUBROUTINE ZCHKTR( DOTYPE, NN, NVAL, NNB, NBVAL, NNS, NSVAL, $ THRESH, TSTERR, NMAX, A, AINV, B, X, XACT, $ WORK, RWORK, NOUT ) * * -- LAPACK test routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * ...
shengren/magma-1.6.1
testing/lin/zchktr.f
FORTRAN
bsd-3-clause
17,213