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
module eapVarApp contains function f(x) != unit 'a :: x real :: x, j, k, l, f j = x k = g(j*j) l = j * g(j * j * j) f = k end function f function g(x) != unit 'b :: x real :: x, n, m, g m = x n = m g = n end function g function h(x) != unit m :: x real :: x,...
mrd/camfort
samples/units/eapVarApp.f90
FORTRAN
apache-2.0
387
*> \brief \b CTRT01 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CTRT01( UPLO, DIAG, N, A, LDA, AINV, LDAINV, RCOND, * RWORK, RESID ) * * ....
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/LIN/ctrt01.f
FORTRAN
bsd-3-clause
6,185
*> \brief \b DGTT05 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE DGTT05( TRANS, N, NRHS, DL, D, DU, B, LDB, X, LDX, * XACT, LDXACT, FERR, BERR,...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/dgtt05.f
FORTRAN
bsd-3-clause
9,198
SUBROUTINE ZUNI2(ZR, ZI, FNU, KODE, N, YR, YI, NZ, NLAST, FNUL, * TOL, ELIM, ALIM) C***BEGIN PROLOGUE ZUNI2 C***REFER TO ZBESI,ZBESK C C ZUNI2 COMPUTES I(FNU,Z) IN THE RIGHT HALF PLANE BY MEANS OF C UNIFORM ASYMPTOTIC EXPANSION FOR J(FNU,ZN) WHERE ZN IS Z*I C OR -Z*I AND ZN IS IN THE RIGHT HALF...
certik/fortran-utils
src/legacy/amos/zuni2.f
FORTRAN
mit
8,752
SUBROUTINE EVALWF(prog,c,Eexp) USE FNVAR IMPLICIT NONE INTEGER, INTENT(in) :: prog DOUBLE PRECISION, INTENT(in) :: Eexp DOUBLE COMPLEX, INTENT(in) :: c(0:n) ! INTEGER :: i,k,int DOUBLE PRECISION :: x, rx(0:n), Hx(0:n,0:n), density, time, Ek DOUBLE COMPLEX :: psi(0:n), wfn ! DOUBLE PRECISION, EXTERNAL :: factrl,Poten...
cianmj/nrc
preliminary_code/evalwf.f
FORTRAN
mit
1,684
! https://github.com/MichaelSiehl/Atomic_Subroutines--How_the_Parallel_Codes_may_look_like--Part_1 module OOOPimma_admImageManager !************************************************ ! Namespace: OOOP - Parallel !************************************************ ! Abstact Data Type Short Name: OOOPimma !*****************...
MichaelSiehl/Atomic_Subroutines--How_the_Parallel_Codes_may_look_like--Part_1
src/OOOPimma_admImageManager.f90
FORTRAN
mit
12,011
SUBROUTINE OUTSEM (I) C PRINT A SINGLE SEMANTIC ACTION FOR A PRODUCTION C GF 11.07.1980 C INCLUDE 'PARS.f' INCLUDE 'SEMS.f' INTEGER*2 I = ,CODE = ,SEMNO(40) ! MNEMONICS FOR THE SEMANTIC ACTIONS DATA SEMNO = /'AC','CO', 'AC','IN', 'AC','MA', 'AC','TA' ...
gfis/jextra
legacy/bofor_2005/OUTSEM.f
FORTRAN
apache-2.0
800
! ! Originally found here: https://publicwiki.deltares.nl/display/~baart_f/2011/10/23/Calling+fortran+from+python ! ! Compile with ! gfortran -shared -fPIC test_ctypes.f90 -o libtest.so ! module test use iso_c_binding implicit none integer, parameter :: MAXSTRLEN = 512 contains ! Utility functions ! fortran char...
cbcoutinho/learn_dg
tests/example_ctypes.f90
FORTRAN
bsd-2-clause
3,513
SUBROUTINE UHYPER(I1B, I2B, JAC, U, DU, D2U, D3U, TEMP, NOEL, CMNAME, & INCMPFLAG, NSTATEV, STATEV, NFIELDV, FIELDV, FIELDVINC, & NPROPS, PROPS) ! ----------------------------------------------------------------------- ! ! HYPERELASTIC COMPRESSIBLE NEO-HOOKEAN MATERIAL ! --------------------------------...
matmodlab/matmodlab2
matmodlab2/umat/umats/uhyper_neohooke.f90
FORTRAN
bsd-3-clause
2,017
subroutine impris(ndata,x,y,a) c c + + + PURPOSE + + + c c SR IMPRIS is an impoundment element subroutine used to c develop fit coefficients for the perforated riser outflow c function. It is based upon the "Numerical Recipes c in Fortran" SR SVDFIT. c c Called from: IMPINT c c Copyri...
akrherz/idep
src/wepp2012-src/impris.for
FORTRAN
mit
2,535
program snbdr4 c c ... Construct matrices A and M in LAPACK-style band form. c The matrix A and M are derived from the finite element c discretization of the 1-dimensional convection-diffusion operator c (d^2u/dx^2) + rho*(du/dx) c on the interval [0,1] with zer...
mcflugen/roms-lite
src/roms/Lib/ARPACK/EXAMPLES/BAND/snbdr4.f
FORTRAN
mit
12,196
*> \brief \b DERRSYX * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE DERRSY( PATH, NUNIT ) * * .. Scalar Arguments .. * CHARACTER*3 PATH * INTEGE...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/derrsyx.f
FORTRAN
bsd-3-clause
16,265
SUBROUTINE STPMV ( UPLO, TRANS, DIAG, N, AP, X, INCX ) * .. Scalar Arguments .. INTEGER INCX, N CHARACTER*1 DIAG, TRANS, UPLO * .. Array Arguments .. REAL AP( * ), X( * ) * .. * * Purpose * ======= * * STPMV performs one of the matrix-vector operat...
yaowee/libflame
src/flablas/f2c/stpmv.f
FORTRAN
bsd-3-clause
9,444
c $Id: test_instr.f,v 1.1 2002/04/05 00:39:59 lombard Exp $ program test_instr c character*256 files, filec, filem include '/usr/local/include/qlib2.inc' parameter (maxps = 32767) integer*4 idata(maxps) include 'station_hdr.inc' c filem = 'BKS.BHZ.D.2001.056.2318' filen = 'instr.coord'...
BIDS-collaborative/save-seistool
seistool/resplib/test_instr.f
FORTRAN
bsd-2-clause
737
*> \brief \b CDRGVX * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CDRGVX( NSIZE, THRESH, NIN, NOUT, A, LDA, B, AI, BI, * ALPHA, BETA, VL, VR, IL...
jmfranck/pyspecdata
lapack-3.4.0/TESTING/EIG/cdrgvx.f
FORTRAN
bsd-3-clause
25,137
! ! -- MAGMA (version 1.3.0) -- ! Univ. of Tennessee, Knoxville ! Univ. of California, Berkeley ! Univ. of Colorado, Denver ! @date November 2014 ! module magma_param implicit none integer, parameter :: sizeof_complex_16 = 16 integer, parameter :: sizeof_complex = 8 integer, ...
kjbartel/clmagma
control/magma_param.f90
FORTRAN
bsd-3-clause
427
*> \brief \b ZLARZ * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download ZLARZ + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zlarz.f...
jmfranck/pyspecdata
lapack-3.4.0/SRC/zlarz.f
FORTRAN
bsd-3-clause
6,370
C LOG: take logarithm of specified axes C implicit NONE C C C Multi column data are handled. Selected columns are "logged" C and an output spectrum written. C C Parameters: C outfile == output file name C infile == input file name C cols == list of columns to "log" C title ...
CavendishAstrophysics/anmap
spec_tools/sp_log.f
FORTRAN
bsd-3-clause
3,173
c c bubble sort and binary search. c program bsort c c no implicit c implicit none c c local variables c logical done, found real x(100), temp, value integer idx1, idx2, last, start, mid c c get how many from user c last = 0 do while ((last.lt.1).or.(last.gt.100)) print 100 100 format(' ', 'how many numbers t...
ombt/ombt
lts08.lcstools/tools/src/ihgp/src/fortran/f10.f
FORTRAN
mit
1,767
subroutine impndday !! ~ ~ ~ PURPOSE ~ ~ ~ !! this subroutine writes daily HRU output to the output.wtr file !! ~ ~ ~ INCOMING VARIABLES ~ ~ ~ !! name |units |definition !! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ !! cpnm(:) |NA ...
grmpfhmbl/swatmodel-trusty64
src/impndday.f
FORTRAN
cc0-1.0
12,198
*> \brief \b SGETSLS * * Definition: * =========== * * SUBROUTINE SGETSLS( TRANS, M, N, NRHS, A, LDA, B, LDB, * $ WORK, LWORK, INFO ) * * .. Scalar Arguments .. * CHARACTER TRANS * INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS * .. * .. Array...
xianyi/OpenBLAS
lapack-netlib/SRC/sgetsls.f
FORTRAN
bsd-3-clause
14,450
!! !! @HEADER !! !!!!********************************************************************** !! !! Zoltan Toolkit for Load-balancing, Partitioning, Ordering and Coloring !! Copyright 2012 Sandia Corporation !! !! Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, !! the U.S. Govern...
nschloe/seacas
packages/zoltan/src/fdriver/farg_nagf95.f
FORTRAN
bsd-3-clause
2,409
MODULE typedefs ! Declare type for a node of the binary tree. TYPE :: node DOUBLE PRECISION :: tau DOUBLE PRECISION :: omega INTEGER :: primary_species INTEGER :: secondary_species INTEGER :: ix,iy,iz !integer coords ...
cnshingledecker/kmc-spin
typedefs.f90
FORTRAN
mit
4,191
program sol implicit none character(len=100) buffer integer pos, i, j, ios integer(8), dimension(:), allocatable :: first integer(8), dimension(:), allocatable :: last integer(8) lil, big, total, earliest ! count how many lines in the file open(99, file="input") i = 0 do read(99, *, IOSTAT=ios...
VisionistInc/advent-of-code-2016
rawjoe/20/sol.f
FORTRAN
mit
1,574
program prog dimension nums(2) dimension data(2) data nums /12,34/ data(1) = 1.2 data(2) = 3.4 write(6, '(f3.1,x,f3.1)') data write(6, '(i3,x,i3)', err=10) nums 10 continue end
hickerson/bbn
fable/fable_sources/fable/test/valid/data_30.f
FORTRAN
mit
234
less_toxic(x1,t1). less_toxic(r1,e1). less_toxic(x1,a1). less_toxic(s1,t1). less_toxic(ii1,p1). less_toxic(cc1,jj1). less_toxic(cc1,d1). less_toxic(q1,jj1). less_toxic(w1,p1). less_toxic(aa1,p1). less_toxic(m1,dd1). less_toxic(u1,c1). less_toxic(ii1,u1). less_toxic(aa1,f1). less_toxic(v1,d1). less_toxic(ii1,a1). less_t...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_toxic_0.1noisyOnTest/test4.f
FORTRAN
apache-2.0
842
great_rsd(kk1,ii1). great_rsd(w1,ff1). great_rsd(u1,ii1). great_rsd(e1,l1). great_rsd(ee1,hh1). great_rsd(aa1,z1). great_rsd(a1,x1). great_rsd(hh1,jj1). great_rsd(cc1,ii1). great_rsd(t1,z1). great_rsd(w1,kk1). great_rsd(aa1,h1). great_rsd(v1,ff1). great_rsd(ee1,m1). great_rsd(f1,t1). great_rsd(t1,ii1).
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_scopolamine_noiseless/incremental5/test6.f
FORTRAN
apache-2.0
304
C Copyright(C) 2009-2017 National Technology & Engineering Solutions of C 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 provid...
nschloe/seacas
packages/seacas/applications/blot/rndvar.f
FORTRAN
bsd-3-clause
6,048
! ! Copyright 2017 SALMON developers ! ! Licensed under the Apache License, Version 2.0 (the "License"); ! you may not use this file except in compliance with the License. ! You may obtain a copy of the License at ! ! http://www.apache.org/licenses/LICENSE-2.0 ! ! Unless required by applicable law or agreed t...
jenkins-diana/test001
src/common/update_overlap.f90
FORTRAN
apache-2.0
12,800
C LAST UPDATE 06/06/96 C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C SUBROUTINE TBKSB(W,V,N,NP,B,X) IMPLICIT NONE C C Purpose: Solves A.X = B for a vector X, where A is specified by the C arrays W,V as returned by TRED2,TQLI. N is the logical C dimension o...
scattering-central/CCP13
software/libs/mlib/tbksb.f
FORTRAN
bsd-3-clause
1,711
*> \brief \b SLARZ applies an elementary reflector (as returned by stzrzf) to a general matrix. * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SLARZ + dependencies *> <a href="http://www.netlib.org/...
buffer51/OpenBLAS
lapack-netlib/SRC/slarz.f
FORTRAN
bsd-3-clause
6,134
DOUBLE PRECISION FUNCTION ZLANHE( NORM, UPLO, N, A, LDA, WORK ) * * -- LAPACK auxiliary routine (version 3.2) -- * -- LAPACK is a software package provided by Univ. of Tennessee, -- * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- * November 2006 * * .. Scalar Arguments .....
alexurba/cftb
src/libsrc/lapack/SRC/zlanhe.f
FORTRAN
mit
6,102
! A 'implied' do loop program doimplied implicit none integer :: i integer, dimension(5) :: P P = (/ (i**2, i=1,5) /) write(*,'(5I3)') P end program doimplied
KEClaytor/QuickDirtyFortran
01_BasicsCode/p09_doi.f08
FORTRAN
mit
201
SUBROUTINE tilt_to_cyl ! USE fields USE tracers USE diagnostic USE injection IMPLICIT none ! ! Rotates from a tilted (magnetic plane) cylindrical basis to a cylindrical basis. ! IF (rot_type=='pos') THEN stop 'position rotate from tilt to cyl is not set up yet...stoppi...
alexbovet/fastpart
src/tilt_to_cyl.f90
FORTRAN
mit
782
program test_1 integer i_bis(3000) integer i_tmp write(*,*)"" write(*,*)"------------" write(*,*)"TEST 1" write(*,*)"------------" write(*,*)"" write(*,*)"test allocate" call init(i_bis) call print_bigint_debug(1,16,i_bis) ...
dpenning/Fortran_Big_Int
test_files/test_1.f
FORTRAN
mit
420
!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ! ! Molden2AIM: a utility to convert the format from MOLDEN to AIM-WFN, AIM-WFX, and NBO-47. ! ! Webpage: https://github.com/zorkzou/Molden2AIM ! ! E-mail: qcband@gmail.com ! !%%%%%%%%%%%%%...
zorkzou/Molden2AIM
src/molden2aim.f90
FORTRAN
mit
233,462
!---------------------------------------------------! ! Copyright (c) 2017 Shunsuke A. Sato ! ! Released under the MIT license ! ! https://opensource.org/licenses/mit-license.php ! !---------------------------------------------------! subroutine FBTS use global_variables implicit ...
shunsuke-sato/spin_boson_model
src/FBTS.f90
FORTRAN
mit
1,850
function gtabs_int(x,y) result (ordered) ! Arguments integer, intent(in) :: x integer, intent(in) :: y ! Result logical :: ordered ! Compare if (abs(real(x)) > abs(real(y))) then ordered = .true. else ordered = .false. end if end function gtabs_int
arinrb/bsort
orders/src/gtabs_int.f90
FORTRAN
apache-2.0
261
! ! Copyright 2017 SALMON developers ! ! Licensed under the Apache License, Version 2.0 (the "License"); ! you may not use this file except in compliance with the License. ! You may obtain a copy of the License at ! ! http://www.apache.org/licenses/LICENSE-2.0 ! ! Unless required by applicable law or agreed t...
jenkins-diana/test001
src/ARTED/RT/current.f90
FORTRAN
apache-2.0
7,739
PROGRAM CCHKAA * INCLUDE 'plasmaf.h' * * -- PLASMA test routine (From LAPACK version 3.1.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * January 2007 * * Purpose * ======= * * CCHKAA is the main test program for the COMPLEX linear equation * routines. * * The program m...
joao-lima/plasma-kaapi
testing/lin/cchkaa.f
FORTRAN
bsd-3-clause
19,605
! ! ! INTEGER FUNCTION LJ (J) IMPLICIT NONE INTEGER J, L, M, K REAL*4 Z ! ! Given the harmonic index j=l(l+1)/2+m+1, returns l (degree) ! -GS 10.09.07 ! If(j<0) then Write(88,*) "LJ: The J-index is out of bounds" Write(88,*) "The program will STOP ----------" Write(*, *) "LJ: The J-index ...
geodynamics/selen
src/lj.f90
FORTRAN
bsd-3-clause
606
SUBROUTINE DLASD2( NL, NR, SQRE, K, D, Z, ALPHA, BETA, U, LDU, VT, $ LDVT, DSIGMA, U2, LDU2, VT2, LDVT2, IDXP, IDX, $ IDXC, IDXQ, COLTYP, INFO ) * * -- LAPACK auxiliary routine (instrumented to count ops, version 3.0) -- * Univ. of Tennessee, Oak Ridge National L...
yaowee/libflame
lapack-test/lapack-timing/EIG/EIGSRC/dlasd2.f
FORTRAN
bsd-3-clause
17,343
SUBROUTINE DLAGTM( TRANS, N, NRHS, ALPHA, DL, D, DU, X, LDX, BETA, $ B, LDB ) * * -- 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 * * ...
mcflugen/roms-lite
src/roms/Lib/ARPACK/LAPACK/dlagtm.f
FORTRAN
mit
6,180
*> \brief \b SECOND Using ETIME_ * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * REAL FUNCTION SECOND( ) * * *> \par Purpose: * ============= *> *> \verbatim *> *> SECOND returns the...
grisuthedragon/OpenBLAS
lapack-netlib/INSTALL/second_EXT_ETIME_.f
FORTRAN
bsd-3-clause
1,345
program test use FoX_wxml implicit none character(len=*), parameter :: filename = 'test.xml' type(xmlf_t) :: xf call xml_OpenFile(filename, xf, addDecl=.false.) call xml_AddXMLDeclaration(xf, encoding='UTF-8', standalone=.true.) call xml_NewElement(xf, "a") call xml_Close(xf) end program test
wilsonCernWq/Simula
fortran/utils/FoX-4.1.2/wxml/test/test_xml_AddXMLDeclaration_4.f90
FORTRAN
mit
314
/*SPECS: http://pauillac.inria.fr/ocaml/htmlman/libref/List.html*/ datatype Pair (X:*) (Y:*) = Pcons of (x:X) (y:Y);; datatype List (T:*) = Null of (u:Unit) | Cons of (x:T) (r:(List T));; let isEmpty (T:*) (l:(List T)):Bool = caseList T l Bool (fn u => true) (fn x r => false...
ucsc-proglang/sage
tests/bad/polylist.1.f
FORTRAN
apache-2.0
10,064
! Copyright 2005-2017 ECMWF. ! ! This software is licensed under the terms of the Apache Licence Version 2.0 ! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. ! ! In applying this licence, ECMWF does not waive the privileges and immunities granted to it by ! virtue of its status as an intergovernme...
0x1mason/GribApi.XP
grib_api/examples/F90/grib_set_data.f90
FORTRAN
apache-2.0
2,117
SUBROUTINE JDATE(FLAG, JAHR,MONTH,DAY,CNAME, DJD) C SUBROUTINE DATE COMPUTES JULIAN DATE FROM CIVIL DATE,OR VICE VERSA. C JAHR IS YEAR AD OR BC(INTEGER),DJD IS DOUBLE PRECISION JULIAN DATE. C JAHR AND MONTH ARE INTEGERS, DAY A SINGLE PRECISION VARIABLE. C ...
Small-Bodies-Node/ntl_archive_db_demo
import_and_persistence/test_files/official_data_sets/ihw-c-irspec-3-edr-gz-v1.0/software/interp/fortran/jdate.for
FORTRAN
bsd-3-clause
7,031
subroutine detach(ichan,ielmt,cnpart,i,flagct) c c + + + PURPOSE + + + c c SR DETACH computes soil particle detachment and sediment load. c c Called from: SRS CASE12, CASE34 c Author(s): Ascough II, R. van der Zweep, V. Lopes c Reference in User Guide: c c Version: c Date recoded: c ...
akrherz/idep
src/wepp2012-src/detach.for
FORTRAN
mit
7,248
program driver c c Generic driver routine for claw1 c c Author: Randall J. LeVeque c Version of March, 1999 -- CLAWPACK Version 4.0 c c implicit double precision (a-h,o-z) c # set parameters for maximum array sizes used in declarations c # these must be increased for larger problems. c c ...
clawpack/clawpack-4.x
book/chap10/tvb/driver.f
FORTRAN
bsd-3-clause
762
*> \brief \b DERRSY * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE DERRSY( PATH, NUNIT ) * * .. Scalar Arguments .. * CHARACTER*3 PATH * INTEGER ...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/LIN/derrsy.f
FORTRAN
bsd-3-clause
21,228
subroutine blicpy(ia,ib,n) vax750 dimension ia(1),ib(1) vax750 do 10 i=1,n vax750 10 ib(i)=ia(i) vax750 ...
imohame/hex
src/blicpy.f
FORTRAN
mit
474
C subroutine to return 2 normally distributed numbers, GAUSS1 and GAUSS2 SUBROUTINE DIST(GAUSS1,GAUSS2) INTEGER SEED DATA SEED/39249187/ DATA PI/3.1415926/ TWOU=-2.*LOG(1.-RAN(SEED)) RADIUS=SQRT(TWOU) THETA=2*PI*RAN(SEED) GAUSS1=RADIUS*COS(THETA) GAUSS2=...
ajz34/Comp-Phys-Koonin
Source-Koonin-Code/WarmUp/chap8f.for
FORTRAN
mit
364
SUBROUTINE NHFLD (XOB,YOB,ZOB,HX,HY,HZ) C C NHFLD COMPUTES THE NEAR FIELD AT SPECIFIED POINTS IN SPACE AFTER C THE STRUCTURE CURRENTS HAVE BEEN COMPUTED. C COMPLEX HX,HY,HZ,CUR,ACX,BCX,CCX,EXK,EYK,EZK,EXS,EYS,EZS,EXC,EYC,E 1ZC COMMON /DATA/ LD,N1,N2,N,NP,M1,M2,M,MP,X(300),Y(300),Z(300),SI...
ViperScience/ViperNEC
NEC2/src/nec/nhfld.f
FORTRAN
apache-2.0
2,309
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_offset.f
FORTRAN
bsd-3-clause
3,530
*> \brief \b DLARRC computes the number of eigenvalues of the symmetric tridiagonal matrix. * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DLARRC + dependencies *> <a href="http://www.netlib.org/...
mverleg/1957
lib/lapack/dlarrc.f
FORTRAN
bsd-3-clause
6,479
*> \brief \b ZLA_HERPVGRW * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download ZLA_HERPVGRW + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_r...
mverleg/1957
lib/lapack/zla_herpvgrw.f
FORTRAN
bsd-3-clause
9,896
*> \brief \b CTFTRI * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download CTFTRI + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ctftr...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/ctftri.f
FORTRAN
mit
15,840
PARAMETER (NSTEP=25) DIMENSION PHI(0:NSTEP) DIMENSION ALPHA(0:NSTEP),BETA(0:NSTEP),GAMMA(0:NSTEP) GAUSS(X,T)=EXP(-20.*(X-.5)**2/(1.+80*T))/SQRT(1+80*T) EXACT(X,T)=GAUSS(X,T)-GAUSS(X-1.,T)-GAUSS(X+1.,T) H=1./NSTEP 50 PRINT *, ' Enter time step and total time (0 to stop)' ...
ajz34/Comp-Phys-Koonin
Source-Koonin-Code/WarmUp/chap7b.for
FORTRAN
mit
1,386
subroutine refall(nx, nelx,ijk,node,ndeg,x,y, * ichild,iparnts,nodcode,nxmax,nelmax,ierr) implicit real*8 (a-h,o-z) integer nx, nelx, node, ndeg, nxmax, nelmax integer ichild(ndeg,1),iparnts(2,nx),ijk(node,*), nodcode(nx) integer midnode(20),inod(20) real*8 x(*),y(*) c--...
xywei/Mirana
src/latools/SPARSKIT2/MATGEN/FEM/elmtlib2.f
FORTRAN
mit
43,037
program volatile_doctest use vecfor_R8P type(vector_R8P) :: pt pt = ex_R8P + ey_R8P + ez_R8P print "(L1)", pt < 4._R16P endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R8P/vecfor_R8P-doctest-117.f90
FORTRAN
bsd-2-clause
150
*> \brief \b CLA_SYAMV computes a matrix-vector product using a symmetric indefinite matrix to calculate error bounds. * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download CLA_SYAMV + dependencies *> <a h...
kortschak/OpenBLAS
lapack-netlib/SRC/cla_syamv.f
FORTRAN
bsd-3-clause
13,150
C Copyright(C) 2014-2017 National Technology & Engineering Solutions of C 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, ar...
nschloe/seacas
packages/seacas/applications/fastq/inqstr.f
FORTRAN
bsd-3-clause
3,037
c ============================================ subroutine setaux(maxmx,mbc,mx,xlower,dx,maux,aux) c ============================================ c c # set auxiliary arrays c # variable coefficient acoustics c # aux(i,1) = impedance Z in i'th cell c # aux(i,2) = sound speed c in i'th cel...
clawpack/clawpack-4.x
book/chap9/acoustics/layered/setaux.f
FORTRAN
bsd-3-clause
1,071
* SUBROUTINE GMRESREVCOM(N, B, X, RESTRT, WORK, LDW, WORK2, $ LDW2, ITER, RESID, INFO, NDX1, NDX2, SCLR1, $ SCLR2, IJOB) * * -- Iterative template routine -- * Univ. of Tennessee and Oak Ridge National Laboratory * October 1, 1993 * Details of this algori...
radarsat1/siconos
externals/netlib/dftemplates/double/GMRESREVCOM.f
FORTRAN
apache-2.0
15,785
*> \brief \b DGENND * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * LOGICAL FUNCTION DGENND (M, N, A, LDA) * * .. Scalar Arguments .. * INTEGER M, N, LDA * .. * ...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/LIN/dgennd.f
FORTRAN
bsd-3-clause
2,225
SUBROUTINE ZLAPTM( UPLO, N, NRHS, ALPHA, D, E, X, LDX, BETA, B, $ LDB ) * * -- LAPACK auxiliary routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. CHARACTER UPLO INTEGER ...
maxhutch/magma
testing/lin/zlaptm.f
FORTRAN
bsd-3-clause
6,376
*> \brief \b ZSYTF2 computes the factorization of a real symmetric indefinite matrix, using the diagonal pivoting method (unblocked algorithm). * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download ZSYTF...
mverleg/1957
lib/lapack/zsytf2.f
FORTRAN
bsd-3-clause
18,758
*> \brief \b ZLAHILB * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE ZLAHILB(N, NRHS, A, LDA, X, LDX, B, LDB, WORK, * INFO, PATH) * * .. Scalar Arguments...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/zlahilb.f
FORTRAN
bsd-3-clause
8,002
subroutine tempin(tbase,tmult) c implicit double precision (a-h,o-z) dp c c read and print nodal point data c common/bk14/lfna(15),lfnt(6) common/cn1/numati,numnpi,numeli,nblk1,nslidi,ntslvi,ntmsri, 1 nnpbi,nepbi,ncnpi common/cn3/ibbari,i...
imohame/hex
src/tempin.f
FORTRAN
mit
1,515
program fort_ratio real yes(15,91,11),noo(15,91,11),ratio(15,91,11),jxdiff real altyes(21,91,16),altnoo(21,91,16),altratio(21,91,16) open(unit=101, file="long_slice_000yesboth.txt") open(unit=102, file="long_slice_090yesboth.txt") open(unit=103, file="long_slice_180yesboth.txt") ...
jobejen/ctim_ion_vis
fort_ratio.f
FORTRAN
mit
3,348
Program crustal_amps_interpolate !!Control file for crustal_amps_interpolate: !! !! Revision of program involving a change in the control file on this date: ! 02/10/15 !! !!Files with site amps: !! NOTE: the file must have a "!" at the beginning of any header lines, followed by a line containing !! the n...
cliftbar/FlaPyDisaster
FlaPyDisaster/Documentation/Earthquake/Boore/smsim6.20/crustal_amps_interpolate.for
FORTRAN
mit
8,437
+incdir+../../vgm_apb/sv ../../vgm_apb/sv/vgm_apb.sv ../../vgm_apb/sv/vgm_apb_master_interface.sv +incdir+../sv ../sv/vgm_apb_ext.sv ../sv/vgm_apb_ext_master_interface.sv
tudortimi/verification-gentleman-blog-code
interface_polymorphism_and_extendability/new/vgm_apb_ext/unit/dependencies.f
FORTRAN
apache-2.0
172
!Copyright (c) 2009 Riccardo Gori <goriccardo@gmail.com> !Released under BSD license, see LICENSE !Solve the (NxN) linear system (0.5*I - C)*phi = C*chi subroutine SolvePhi(N, B, C, PHI, CHI) IMPLICIT NONE integer, intent(IN) :: N real(kind=8), dimension(N,N), intent(IN) :: B, C real(kind=8), d...
goriccardo/bem2dlib
bem2d.f90
FORTRAN
bsd-3-clause
3,557
REAL FUNCTION SQPT01( M, N, K, A, AF, LDA, TAU, JPVT, $ WORK, LWORK ) * * -- LAPACK test routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. INTEGER K, LDA, LWORK, M, N *...
shengren/magma-1.6.1
testing/lin/sqpt01.f
FORTRAN
bsd-3-clause
4,072
*> \brief \b SPST01 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE SPST01( UPLO, N, A, LDA, AFAC, LDAFAC, PERM, LDPERM, * PIV, RWORK, RESID, RANK...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/spst01.f
FORTRAN
bsd-3-clause
8,019
MODULE MOD_PLOTCON contains SUBROUTINE PLOTCON (KANAL,X,Y,N,ISYMBOL) C********** MODULNAME: PLOTCON ******* 24/03/87 19.38.29.****** 25 KARTEN C*** DIESE ROUTINE DIENST ZUM EINTRAGEN EINER 2. ODER 3. FUNKTION IN DEN C*** BEGONNENEN PLOT ( PLOTCON ) , BZW. AB ENTRY PLOTTAB ZUM EIN...
rtagirov/nessy
src/plotcon.for
FORTRAN
mit
1,230
SUBROUTINE ewald_real(iii,rij,rijsq,jbeg,jend,ewald4) implicit none include 'p_array.inc' include 'p_const.inc' include 'cm_atom.inc' include 'cm_ewld.inc' include 'cm_cuto.inc' include 'cm_vlst.inc' integer iii,i,j,k,iatm,jatm integer jbeg,jend real...
rangsimanketkaew/NWChem
src/smd/graveyard/smd-original/ewald_real.f
FORTRAN
mit
1,228
! -*- Mode: Fortran; -*- ! ! (C) 2003 by Argonne National Laboratory. ! See COPYRIGHT in top-level directory. ! ! This is a special test that requires an getarg/iargc routine ! This tests spawn_mult by using the same executable but different ! command-line options. ! program main ! declared on the old ...
syftalent/dist-sys-exercises-1
lec-6/mpi/mpich-3.1.4/test/mpi/f08/spawn/spawnmultf90.f90
FORTRAN
mit
5,730
C Copyright(C) 2014-2017 National Technology & Engineering Solutions of C 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, ar...
nschloe/seacas
packages/seacas/applications/fastq/gettrn.f
FORTRAN
bsd-3-clause
6,721
C Copyright(C) 2009-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 permitte...
nschloe/seacas
packages/seacas/libraries/suplib/scneof.f
FORTRAN
bsd-3-clause
2,581
subroutine rstatic (res, y, Dy) c c---------------------------------------------------------------------- c c This subroutine calculates the statistics of the residual. c c input: c res (nshg,nflow) : preconditioned residual c c output: c The time step, cpu-time and entropy-norm of the residual c are ...
cwsmith/phasta
phSolver/incompressible/rstatic.f
FORTRAN
bsd-3-clause
8,505
subroutine smooth (line,ncall) c****************************************************************************** c This subroutine prepares synthesis data for plotting by smoothing c the data in various ways. c****************************************************************************** implicit r...
alexji/moog17scat
Smooth.f
FORTRAN
mit
16,887
! RUN: %S/test_errors.sh %s %t %f18 character*20 c(25), cv character(kind=1,len=59) msg character, parameter :: const_round = "c'est quoi?" logical*2 v(5), lv integer*1 stat1 integer*2 stat4 integer*8 stat8, iv integer, parameter :: const_id = 1 inquire(10) inquire(file='abc') inquire(10, pos=ipo...
google/llvm-propeller
flang/test/Semantics/io05.f90
FORTRAN
apache-2.0
2,349
!****h* ROBODoc/H5O (F03) ! ! NAME ! H5O_PROVISIONAL ! ! PURPOSE ! This file contains Fortran 90 and Fortran 2003 interfaces for H5O functions. ! It contains the same functions as H5Off_F90.f90 but includes the ! Fortran 2003 functions and the interface listings. This file will be compiled ! instead of H5Off_F90.f...
opencb/hpg-pore
src/main/third-party/hdf5-1.8.14/fortran/src/H5Off_F03.f90
FORTRAN
apache-2.0
15,923
module f90_return_complex contains function t0(value) complex :: value complex :: t0 t0 = value end function t0 function t8(value) complex(kind=4) :: value complex(kind=4) :: t8 t8 = value end function t8 function t16(value) ...
anntzer/numpy
numpy/f2py/tests/src/return_complex/foo90.f90
FORTRAN
bsd-3-clause
1,238
C This program computes the integral of a known function with known C ranges and compares them against analytically derived answers. If the C program determines that the computed value is not what you expected, then C it will print out FAILURE, otherwise it will print out SUCCESS C Written by psilord 08/08/2000 ...
djw8605/condor
src/condor_tests/job_ckpt_f-areauc_std.f
FORTRAN
apache-2.0
3,112
program prog do i=1,3 do j=1,2 if (i-2) 11, 12, 13 10 if (i .eq. j) goto 14 write(6, *) 'i != j' goto 14 11 write(6, *) 'label 11' goto 10 12 write(6, *) 'label 12' goto 10 13 write(6, *) 'label 13' goto 10 14 ...
hickerson/bbn
fable/fable_sources/fable/test/valid/if_spaghetti.f
FORTRAN
mit
370
module HammerStrike implicit none private public rigid_hammer_strike contains subroutine rigid_hammer_strike(y,hammerHeight,hammerMass,hammerVelocity,hammerForce,lastHammerVelocity,compression,deltaT, & g,force,hammerDone,tension,bendingPrefactor,k,b,rho,deltaX) real*8, intent(inout) :: y(:), h...
dbouman1/iccp-assignment-4
hammerstrike.f90
FORTRAN
mit
2,505
c.................... hipyset1.35.f C C C C Modified for HIJING program c c modification July 22, 1997 In pyremnn put an upper limit c on the total pt kick the parton can accumulate via multiple C scattering. Set the upper limit to be the sqrt(s)/2, c this is fix cronin bug for Pb+Pb events at SPS e...
tuos/ampt
Ampt-v1.26t5-v2.26t5/hipyset1.35.f
FORTRAN
mit
565,048
great_ne(q1,m1). great_ne(m1,a1). great_ne(b1,c1). great_ne(v1,ii1). great_ne(z1,ff1). great_ne(y1,w1). great_ne(z1,p1). great_ne(p1,m1). great_ne(ii1,w1). great_ne(v1,c1). great_ne(v1,b1). great_ne(cc1,ee1). great_ne(bb1,w1). great_ne(z1,ii1). great_ne(cc1,dd1). great_ne(p1,x1). great_ne(m1,ii1). great_ne(p1,b1). grea...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_anime_noiseless/incremental9/train9.f
FORTRAN
apache-2.0
4,906
*> \brief \b ZERRVXX * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE ZERRVX( PATH, NUNIT ) * * .. Scalar Arguments .. * CHARACTER*3 PATH * INTEGE...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/zerrvxx.f
FORTRAN
bsd-3-clause
50,337
SUBROUTINE floop8_F77(N, a, x, u) INTEGER i, N REAL*4 a(N), x(N), u DO i=1,N x(i) = u/a(i); END DO RETURN END SUBROUTINE floop8_F77Overhead(N, a, x, u) INTEGER i, N REAL*4 a(N), x(N), u RETURN END
MSV-Project/IBAMR
ibtk/third_party/blitz-0.10/benchmarks/floop8f.f
FORTRAN
bsd-3-clause
283
*> \brief \b SORGHR * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SORGHR + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sorgh...
mverleg/1957
lib/lapack/sorghr.f
FORTRAN
bsd-3-clause
6,548
SUBROUTINE VSINT(M,N,X,XT,MDIMX,WSAVE) * * $Id$ * implicit double precision (a-h, o-z) C***BEGIN PROLOGUE VSINT C***DATE WRITTEN 860701 (YYMMDD) C***REVISION DATE 900509 (YYMMDD) C***CATEGORY NO. J1A3 c***KEYWORDS FAST FOURIER TRANSFORM, SINE TRANSFORM, MULTIPLE C SEQUENCES C***AUTHOR ...
rangsimanketkaew/NWChem
src/ddscf/fast/vsint.orig.f
FORTRAN
mit
37,157
c -*- Fortran -*- c c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c c Lithomop3d by Charles A. Williams c Copyright (c) 2003-2005 Rensselaer Polytechnic Institute c c Permission is hereby granted, free of charge, to any person obtaining c a copy of this software and associated docu...
geodynamics/lithomop
lithomop3d/liblithomop3d/mat_9.f
FORTRAN
mit
10,611
*> \brief \b DLASQ6 computes one dqd transform in ping-pong form. Used by sbdsqr and sstegr. * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DLASQ6 + dependencies *> <a href="http://www.netlib.org...
rangsimanketkaew/NWChem
src/lapack/double/dlasq6.f
FORTRAN
mit
6,827
great_ne(hh1,k1). great_ne(u1,ee1). great_ne(aa1,kk1). great_ne(z1,ff1). great_ne(u1,kk1). great_ne(q1,ii1). great_ne(hh1,h1). great_ne(z1,kk1). great_ne(p1,m1). great_ne(u1,dd1). great_ne(ee1,ii1). great_ne(u1,k1). great_ne(f1,c1). great_ne(cc1,f1). great_ne(bb1,ff1). great_ne(aa1,w1). great_ne(aa1,k1). great_ne(z1,i1...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_amine_0.1noisyOnTest/test7.f
FORTRAN
apache-2.0
562
subroutine rules1 use fdeclarations implicit none mmatrix(:,:,:)=0 do j=1,nn if (scenario==1) then if (p22matrix(j,1)>0 .and. p22matrix(j,1)<=0.2) then mmatrix(j,5,i)=minval(fmatrix(j,1:w-1,i)) else if (p22matrix(j,1)>0.2 .and. p22matrix(j,1)<=0.4) then mmatrix(j,4,i)=minval(fmatrix(j,1:w-1,i)) else if (p...
chtheodoro/habfuzz
habfuzz/rules1.f95
FORTRAN
apache-2.0
1,932
!********************************************************************************************************************************** ! LICENSING ! Copyright (C) 2015-2016 National Renewable Energy Laboratory ! Copyright (C) 2016-2017 Envision Energy USA, LTD ! ! This file is part of AeroDyn. ! ! Licensed under the ...
OpenFAST/OpenFAST
modules/aerodyn/src/BEMT.f90
FORTRAN
apache-2.0
119,608