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
program helloworld use omp_lib implicit none !$OMP PARALLEL !$OMP CRITICAL print *,'Hello from thread number',OMP_GET_THREAD_NUM() !$OMP END CRITICAL !$OMP END PARALLEL end program helloworld
mkawalec/5thyear
threaded/Fortran90/HelloWorld/helloworld.f90
FORTRAN
mit
202
C Memory size. INTEGER rmax,thetamax,zmax,nx,ny,nz INTEGER MAXWORDS,MAXRAYS,MAXGATES,MAXCOEFFS PARAMETER(MAXWORDS=4095, $MAXRAYS=3000, $MAXGATES=1500, $MAXCOEFFS=13) PARAMETER(rmax=90, * thetamax=90, * zmax=20, * nx=241, * n...
mmbell/gbvtd
findcenter/gbvtd_parameter.f
FORTRAN
mit
350
!------------------------------------------------------------------------------- ! Copyright (c) 2019 FrontISTR Commons ! This software is released under the MIT License, see LICENSE.txt !------------------------------------------------------------------------------- !> \brief Adaptive Mesh Refinement !C !C*** !C*** h...
FrontISTR/FrontISTR
hecmw1/src/operations/adaptation/hecmw_adapt_repro_comm_table.f90
FORTRAN
mit
3,579
SUBROUTINE torus5_setaux(mbc,mx,my,xlower,ylower,dx,dy,maux,aux) implicit none integer mbc, mx,my, maux double precision dx,dy, xlower, ylower double precision aux(maux,1-mbc:mx+mbc,1-mbc:my+mbc) INTEGER blockno, fc2d_clawpack5_get_block integer color_equation common /eqn_comm/ color_equ...
ForestClaw/forestclaw
applications/clawpack/advection/2d/torus/user_5.0/torus5_setaux.f90
FORTRAN
bsd-2-clause
2,668
module sddk use, intrinsic :: ISO_C_BINDING interface subroutine sddk_create_fft_grid(dims, fft_grid_id)& &bind(C, name="sddk_create_fft_grid") integer, intent(in) :: dims(3) integer, intent(out) :: fft_grid_id end subroutine...
dithillobothrium/SIRIUS
src/SDDK/sddk.f90
FORTRAN
bsd-2-clause
4,353
C C This file is a part of HAXX C C Copyright (c) 2017 David Williams-Young C All rights reserved. C C See LICENSE.txt C Subroutine HGEMVZD(TRANS, M, N, ALPHA, A, LDA, X, INCX, BETA, $ Y, INCY) C LOGICAL LSAME EXTERNAL LSAME C CHARACTER TRANS LOGICAL NOC...
wavefunction91/HAXX
src/hblas/fortran_bindings/hblas/hblas2/hgemvzd.f
FORTRAN
bsd-3-clause
4,959
! Copyright (C) 2015, 2016, Simone Marsili ! All rights reserved. ! License: BSD 3 clause module data use nrtype implicit none private public :: nd ! number of data samples public :: nv ! number of variables public :: ns ! number of states public :: data_samples public :: w public :: neff publi...
simomarsili/mpl
src/data.f90
FORTRAN
bsd-3-clause
3,037
! ! Double-base palindromes ! ! Problem 36 ! ! The decimal number, 585 = 10010010012 (binary), is palindromic in both bases. ! ! Find the sum of all numbers, less than one million, which are palindromic in ! base 10 and base 2. ! ! (Please note that the palindromic number, in either base, may not include ! leading zero...
chirimenmonster/projecteuler
p036/p036.f90
FORTRAN
bsd-3-clause
1,926
C----------------------------------------------------------------------- SUBROUTINE GTD7(IYD,SEC,ALT,GLAT,GLONG,STL,F107A,F107,AP,MASS,D,T) C C NRLMSISE-00 C ----------- C Neutral Atmosphere Empirical Model from the surface to lower C exosphere C C NEW FEATURES: C *Extensive ...
timduly4/pyglow
static/nrlmsise00_sub.for
FORTRAN
mit
108,293
! -*- F90 -*- subroutine QCDNUMevolve(x,Q,pdf) implicit none character*64 gridname character*16 s1,dummy integer Eorder,index real*8 x,Q,Qlam,Q2,Q2fit,alfas0,scale0,alfas real*8 mc,mc2,mb,mb2,mt,mt2,tc,tc2,tb,tb2 real*8 singlet,dm,um,dp,up,sp,ub,db,sb,cb,bb,bp,cp...
miranov25/AliRoot
LHAPDF/lhapdf5.5.1/src/wrapQCDNUM.f
FORTRAN
bsd-3-clause
15,437
! { dg-do compile } ! ! PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length. ! ! Original test case contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de> module m implicit none type :: t1 contains procedure, nopass :: a => a1...
the-linix-project/linix-kernel-source
gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/typebound_override_1.f90
FORTRAN
bsd-2-clause
2,307
!=====================Above is for ZTF !HERE CAL means CACculated and tabulated EOS in contrast with !ZTF which is the analytical fit for the Thomas-Fermi model module CRASH_M_EOS !The CRASH meterial number SAVE integer:: iMaterial = -1 logical:: UseCrashEos = .false. contains !------ subroutine set_kbR(ro,...
dpawlows/MGITM
util/CRASH/src/eos_material.f90
FORTRAN
mit
6,835
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ! Sous-routines & fonctions matricielles élémentaires ! 17.11.96 !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ! Calcule c = A * b (full matrix) SUBROUTINE MatMult(N, A, b, c) implicit none INTEGER :: N, i, j REAL*8 :: A(N,N)...
rboman/progs
student/tfe/common/matfun.f90
FORTRAN
apache-2.0
3,147
MODULE mo_column CONTAINS FUNCTION compute_column ( nz , b , q , t , nproma ) RESULT(r) INTEGER , INTENT(IN) :: nproma INTEGER , INTENT(IN) :: nz INTEGER , INTENT(IN) :: b REAL , INTENT(INOUT) :: t ( 1 : b , 1 : nproma ) REAL , INTENT(INOUT) :: q ( 1 : b , 1 : nproma ) INTEGER :: k REAL :: c INTEGER :...
clementval/claw-compiler
test/claw/sca/data_over_with_non_assumed_shaped_arrays/reference_cpu.f90
FORTRAN
bsd-2-clause
998
! MD5 of template: 8bd22331adb474e07197fb1405bb97d4 ! ------------------------------------------------------------------------------ ! Copyright (c) 2009-13, Thomas P. Robitaille ! ! All rights reserved. ! ! Redistribution and use in source and binary forms, with or without ! modification, are permitted provided that t...
astrofrog/fortranlib
src/type_var2d_pdf2d.f90
FORTRAN
bsd-2-clause
12,949
*> \brief \b DGESVJ * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DGESVJ + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dgesvj.f...
buffer51/OpenBLAS
lapack-netlib/SRC/dgesvj.f
FORTRAN
bsd-3-clause
68,246
c c --------------------------------------------------------------- c recursive subroutine filrecur(level,nvar,valbig,aux,naux, 1 time,mitot,mjtot, 2 nrowst,ncolst,ilo,ihi,jlo,jhi) c :::::::::::::::::::::::::::: FILPATCH :::::::::::::::::::::::::; c c fill t...
clawpack/clawpack-4.x
amrclaw/2d/lib/filpatch.f
FORTRAN
bsd-3-clause
9,744
subroutine MakeGravGridDH(cilm, lmax, gm, r0, a, f, rad_grid, theta_grid, & phi_grid, total_grid, n, sampling, lmax_calc, omega, & normal_gravity, pot_grid) !------------------------------------------------------------------------------- ! ! Given the gravitational sphe...
pochoi/SHTOOLS
src/MakeGravGridDH.f95
FORTRAN
bsd-3-clause
36,420
! RUN: %S/test_errors.sh %s %t %f18 ! C735 If EXTENDS appears, SEQUENCE shall not appear. ! C738 The same private-or-sequence shall not appear more than once in a ! given derived-type-def . ! ! C740 If SEQUENCE appears, ! the type shall have at least one component, ! each data component shall be declared to be of an ...
google/llvm-propeller
flang/test/Semantics/resolve31.f90
FORTRAN
apache-2.0
2,554
*> \brief <b> CGEES computes the eigenvalues, the Schur form, and, optionally, the matrix of Schur vectors for GE matrices</b> * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download CGEES + dependencies *> ...
grisuthedragon/OpenBLAS
lapack-netlib/SRC/cgees.f
FORTRAN
bsd-3-clause
13,336
C { dg-do compile } C PR 20059 C Check that the warning for padding works correctly. SUBROUTINE PLOTZ IMPLICIT DOUBLE PRECISION (A-H,O-Z) COMMON /CCPOOL/ RMIN,RMAX,ZMIN,ZMAX,IMIN,JMIN,IMAX,JMAX,NFLOP, ! { dg-warning "Padding" } $ HTP C RETURN END
shaotuanchen/sunflower_exp
tools/source/gcc-4.2.4/gcc/testsuite/gfortran.dg/common_5.f
FORTRAN
bsd-3-clause
284
! ! The Laboratory of Algorithms ! ! The MIT License ! ! Copyright 2011-2015 Andrey Pudov. ! ! 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 restriction, including without limitation ...
andreypudov/Algorithms
Features/Inheritance/Cat.f
FORTRAN
mit
1,474
module lib implicit none integer :: i integer :: mpi_err, req_recv, req_send type Kozo double precision, dimension(42) :: U double precision, dimension(42) :: V end type Kozo type(Kozo) :: Iriguchi type(Kozo) :: Deguchi end module lib
nushio3/formura
attic/fortran-mpi-test/lib.f90
FORTRAN
mit
268
!< VTK_Fortran test: write VTS file. program vtk_fortran_write_vts !< VTK_Fortran test: write VTS file. use penf use vtk_fortran, only : vtk_file implicit none type(vtk_file) :: a_vtk_file !< A VTK file. integer(I4P), parameter :: nx1=0_I4P !< X lower b...
szaghi/Lib_VTK_IO
src/tests/vtk_fortran_write_vts.f90
FORTRAN
bsd-2-clause
3,033
MODULE c_arrays IMPLICIT NONE CONTAINS FUNCTION array_in(n,x) RESULT(y) INTEGER, INTENT(in) :: n INTEGER, INTENT(in) :: x(n) INTEGER :: y y = SUM(x) END FUNCTION array_in ! Test assumed size array FUNCTION array_in_2(x) RESULT(y) INTEGER, INTENT(in) :: x(*) INTEGER :: y y = SUM...
mcfarljm/fortwrap
tests/c_arrays/c_arrays.f90
FORTRAN
mit
722
!------------------------------------------------------------------------------- !> Module saturation process !! !! @par Description !! This module is for saturation processes !! !! @author NICAM developers !< !------------------------------------------------------------------------------- module mod_satadjust ...
hisashiyashiro/nicam_dckernel_2016
physicskernel_radiation/src/mod_satadjust.f90
FORTRAN
bsd-2-clause
63,685
c----------------------------------------------------------------------- c Demonstration program for the DLSODIS package. c This is the version of 14 June 2001. c c This version is in double precision. c c This program solves a semi-discretized form of the Burgers equation, c c u = -(u*u/2) + eta * u c t ...
siconos/siconos
externals/netlib/odepack/test/DLSODIS-test.f
FORTRAN
apache-2.0
14,897
cc Copyright (C) 2004-2009: Leslie Greengard and June-Yub Lee cc Contact: greengard@cims.nyu.edu cc cc This software is being released under a FreeBSD license cc (see license.txt in this directory). cc c c NUFFT 1.3 release notes: c c These codes are asymptotically fast (O(N log N)), but not optimized. c c 1) We ...
biotrump/nufft
src/nufft2df90fftw.f
FORTRAN
bsd-2-clause
34,137
*> \brief \b STRTI2 computes the inverse of a triangular matrix (unblocked algorithm). * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download STRTI2 + dependencies *> <a href="http://www.netlib.org/cgi-bin/...
grisuthedragon/OpenBLAS
lapack-netlib/SRC/strti2.f
FORTRAN
bsd-3-clause
5,893
SUBROUTINE SQRT13( SCALE, M, N, A, LDA, NORMA, ISEED ) * * -- LAPACK test routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. INTEGER LDA, M, N, SCALE REAL NORMA * .. * .. Arr...
shengren/magma-1.6.1
testing/lin/sqrt13.f
FORTRAN
bsd-3-clause
2,945
SUBROUTINE DTPMV(UPLO,TRANS,DIAG,N,AP,X,INCX) * .. Scalar Arguments .. INTEGER INCX,N CHARACTER DIAG,TRANS,UPLO * .. * .. Array Arguments .. DOUBLE PRECISION AP(*),X(*) * .. * * Purpose * ======= * * DTPMV performs one of the matrix-vector operations * * x :...
dcherian/tools
eigen/blas/dtpmv.f
FORTRAN
mit
9,584
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 documentati...
geodynamics/lithomop
lithomop3d/liblithomop3d/unused/stiffql.f
FORTRAN
mit
4,071
program main use euler use ISO_FORTRAN_ENV implicit none integer (int64), parameter :: maximum = 600851475143_int64; integer (int64) :: largest, i i = 1 largest = 0 do while (i ** 2 < maximum) if((mod(maximum, i) == 0) .AND. isprime(i)) then ...
guynan/project_euler
fortran/largest_prime_factor.f95
FORTRAN
bsd-3-clause
472
! RUN: %B/test/Semantics/test_errors.sh %s %flang %t ! Confirm enforcement of constraints and restrictions in 7.5.7.3 ! and C733, C734 and C779, C780, C781, C782, C783, C784, and C785. module m !ERROR: An ABSTRACT derived type must be extensible type, abstract, bind(c) :: badAbstract1 end type !ERROR: An ABSTR...
endlessm/chromium-browser
third_party/llvm/flang/test/Semantics/bindings01.f90
FORTRAN
bsd-3-clause
3,568
subroutine cross(ijk,ia,ja,ka,r0,sp,sn,rr,uflux,vflux,wflux,ff,km,jmt,imt,do3d,doturb,upr) !==================================================================== ! subroutine to compute time (sp,sn) when trajectory ! crosses face of box (ia,ja,ka) ! two crossings are considered for each direction: ! east and west...
kthyng/tracpy
src/cross.f95
FORTRAN
mit
7,003
! not currently used subroutine calc_gamma_distrn(rzero,x0,s,lambda,N,rmin,dr,Nnot,rsix) use h_params use h_struct use numerical_libraries ! This subroutine calculates an abcissa shifted gamma probability ! density. ! WARNING - call this subroutine with s .GE. 1. and with mean = x0+s/lambda > 0 ! It also calc...
chsolis/GlobalCurve
utilities/calc_gamma_distrn.f90
FORTRAN
apache-2.0
1,042
*> \brief \b CCHKGE * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CCHKGE( DOTYPE, NM, MVAL, NN, NVAL, NNB, NBVAL, NNS, * NSVAL, THRESH, TSTERR, NM...
xianyi/OpenBLAS
lapack-netlib/TESTING/LIN/cchkge.f
FORTRAN
bsd-3-clause
20,021
SUBROUTINE CSPT02( UPLO, N, NRHS, A, X, LDX, B, LDB, RWORK, $ RESID ) * * -- LAPACK test routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. CHARACTER UPLO INTEGER L...
maxhutch/magma
testing/lin/cspt02.f
FORTRAN
bsd-3-clause
3,956
program test2 use genetics use cities use myio use cmparser use slf_random implicit none real*8 :: x real*8, allocatable :: places(:,:), distances(:,:) type(group), allocatable :: population(:), bestpopulation(:), temppop(:) integer :: time = 1000,& popNo = 1000 real*8 :: xmen = 0.0001d0 ...
danielpecak/salesman
fortran/test2.f95
FORTRAN
mit
2,932
c c c ################################################### c ## COPYRIGHT (C) 1990 by Jay William Ponder ## c ## All Rights Reserved ## c ################################################### c c ############################################################### c ## ...
htna/HCsbLib
HCsbLib/HCsbLib/HTLib2.Bioinfo/External.Tinker/src/tinker-6.2.06/superpose.f
FORTRAN
mit
16,993
great_ne(aa1,f1). great_ne(bb1,c1). great_ne(hh1,y1). great_ne(u1,aa1). great_ne(p1,kk1). great_ne(q1,bb1). great_ne(t1,u1). great_ne(cc1,t1). great_ne(hh1,c1). great_ne(m1,w1). great_ne(z1,x1). great_ne(jj1,ee1). great_ne(dd1,i1). great_ne(ii1,h1). great_ne(cc1,aa1). great_ne(z1,ee1). great_ne(ee1,dd1). great_ne(q1,dd...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_amine_0.1noisyOnTest/test5.f
FORTRAN
apache-2.0
659
subroutine user46_setaux_manifold(mbc,mx,my, & xlower,ylower,dx,dy,maux,aux,blockno, & xd,yd,zd,area) implicit none integer mbc, mx,my, maux integer blockno double precision dx,dy, xlower, ylower double precision aux(1-mbc:mx+mbc,1-mbc:my+mbc, maux) doubl...
ForestClaw/forestclaw
applications/clawpack/advection/2d/all/user46_setaux_manifold.f
FORTRAN
bsd-2-clause
2,413
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/inigrd.f
FORTRAN
bsd-3-clause
3,719
program energy real, parameter :: mass = 3.00, gravity = 9.81, height = 4.20 real :: potential_energy real, parameter :: velocity = 4.00 real :: kinetic_energy, total_energy potential_energy = mass * gravity * height kinetic_energy = 0.5 * mass * square(velocity) total_energy = potential_energy + kinet...
dorchard/camfort
samples/worksheet/example1.f90
FORTRAN
apache-2.0
440
*> \brief \b CDRGES * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CDRGES( NSIZES, NN, NTYPES, DOTYPE, ISEED, THRESH, * NOUNIT, A, LDA, B, S, T, Q,...
grisuthedragon/OpenBLAS
lapack-netlib/TESTING/EIG/cdrges.f
FORTRAN
bsd-3-clause
34,091
*> \brief \b ZSYEQUB * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download ZSYEQUB + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zsy...
LighthouseHPC/lighthouse
src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/zsyequb.f
FORTRAN
mit
10,098
subroutine printv (freq,phi,id,numnp,neq,yz,y,z,matp) c implicit double precision (a-h,o-z) dp c common/bk00/ 1k01,k02,k03,k04,k05,k06,k07,k08,k09,k10,k11,k12, 2k13,k14,k15,k16,k17,k18,k19,k20,k21,k22,k23,k24, 3k25,k26,k27,k28,k29,k30,k31,k32,k33,k34,k35...
imohame/hex
src/printv.f
FORTRAN
mit
3,387
great_rsd(f1,ii1). great_rsd(p1,v1). great_rsd(k1,kk1). great_rsd(ee1,ii1). great_rsd(cc1,ff1). great_rsd(c1,z1). great_rsd(q1,h1). great_rsd(cc1,ee1). great_rsd(v1,dd1). great_rsd(f1,jj1). great_rsd(u1,hh1). great_rsd(q1,ii1). great_rsd(cc1,l1). great_rsd(u1,l1). great_rsd(h1,x1). great_rsd(cc1,c1). great_rsd(q1,dd1)....
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_scopolamine_noiseless/incremental9/test3.f
FORTRAN
apache-2.0
530
program volatile_doctest use vecfor_R8P type(vector_R8P) :: pt pt = 1_I1P print "(3(F3.1,1X))", abs(pt%x), abs(pt%y), abs(pt%z) endprogram volatile_doctest
szaghi/VecFor
src/tests/vecfor_R8P/vecfor_R8P-doctest-43.f90
FORTRAN
bsd-2-clause
158
SUBROUTINE MB03WD( JOB, COMPZ, N, P, ILO, IHI, ILOZ, IHIZ, H, $ LDH1, LDH2, Z, LDZ1, LDZ2, WR, WI, DWORK, $ LDWORK, INFO ) C C SLICOT RELEASE 5.5. C C Copyright (c) 2002-2012 NICONET e.V. C C PURPOSE C C To compute the Schur decomposition and...
bgin/MissileSimulation
External/SLICOT/MB03WD.f
FORTRAN
mit
33,780
module domain_interface use configuration_interface, only : configuration_t use exchangeable_interface, only : exchangeable_t use grid_interface, only: grid_t implicit none private public :: domain_t type domain_t ! private ! core model species to be advected type(exchangeable_t) :: water_va...
rouson/coarray_icar
src/objects/domain_interface.f90
FORTRAN
mit
4,300
program t if (.true.) then print *,'ok' end if end program t
thender/ppp
tests/t0065r/t.f90
FORTRAN
apache-2.0
69
*> \brief \b DTPLQT * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download DTPQRT + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dtplqt.f...
kortschak/OpenBLAS
lapack-netlib/SRC/dtplqt.f
FORTRAN
bsd-3-clause
8,010
*> \brief \b SSBGST * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download SSBGVX + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ssbgv...
LighthouseHPC/lighthouse
src/Dlighthouse/static/Doxygen/lapack/ssbgvx.f
FORTRAN
mit
16,205
*> \brief \b DLATM3 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * DOUBLE PRECISION FUNCTION DLATM3( M, N, I, J, ISUB, JSUB, KL, KU, * IDIST, ISEED, D, IGRADE...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/MATGEN/dlatm3.f
FORTRAN
bsd-3-clause
9,761
! ! epsilon_maquina.f90 ! ! Copyright 2016 Bruno S <bruno@oac.unc.edu.ar> ! ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later versi...
BrunoSanchez/fisicaComp
lab1/epsilon/epsilon_maquina.f90
FORTRAN
mit
1,028
module NoBindMod use iso_c_binding implicit none public :: NoBindSub1 contains subroutine NoBindSub1(int1, double1, double2, int2) integer(kind=c_int) :: int1(10) real*8, intent(in) :: double1 real*8, intent(in), dimension(10, 20, *) :: double2 integer ...
sharifmarat/fortran_to_c_headers
test/resources/no_bind/in.f90
FORTRAN
mit
813
program test use FoX_wxml, only : xmlf_t, xml_OpenFile, xml_Close use FoX_wxml, only : xml_NewElement, xml_DeclareNamespace implicit none character(len=*), parameter :: filename = 'test.xml' type(xmlf_t) :: xf call xml_OpenFile(filename, xf) call xml_DeclareNamespace(xf, "http://www.xml-cml.org/schema"...
wilsonCernWq/Simula
fortran/utils/FoX-4.1.2/wxml/test/test_xml_Namespaces_8.f90
FORTRAN
mit
684
program prog complex zero, one_two, three_four parameter(zero=(0.0e+0,0.0e+0)) parameter(three=3) parameter(four=three+1) parameter(one_two=(1.0e+0,2.0e+0), three_four=(three,four)) write(6, *) zero write(6, *) one_two write(6, *) three_four end
hickerson/bbn
fable/fable_sources/fable/test/valid/parameters_2.f
FORTRAN
mit
306
C+ENQ_V1_TSYS subroutine enq_v1_tsys( temps, nominal, s ) C Version 1 enquire system temperatures C Returns C Table of system temperatures by aerial real temps(1) C Nominal rain gauge value real nominal C Status integer s ...
CavendishAstrophysics/postmortem
src/samplib/enq_v1_tsys.f
FORTRAN
bsd-3-clause
554
subroutine gendat (y, ac, x, iBC, BC, & iper, ilwork, & shp, shgl, shpb, shglb, & ifath, velbar, nsons ) c c---------------------------------------------------------------------- c c This routine in...
PHASTA/phasta
phSolver/common/gendat.f
FORTRAN
bsd-3-clause
9,160
subroutine discov(amol,i1,i2) c****************************************************************************** c This routine returns i2 = the number of times atom i1 appears in c molecule amol c************************************************...
JNMcLane/MoogPy
MoogSource/Discov.f
FORTRAN
mit
1,103
*> \brief \b ZPFTRF * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * *> \htmlonly *> Download ZPFTRF + dependencies *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zpftrf.f...
buffer51/OpenBLAS
lapack-netlib/SRC/zpftrf.f
FORTRAN
bsd-3-clause
15,342
C C SUBROUTINE DLAEIG(N, NBAND, NL, NR, A, EIGVAL, LDE, 1 EIGVEC, BOUND, ATEMP, D, VTEMP, EPS, TMIN, TMAX) C C THIS IS A SPECIALIZED VERSION OF THE SUBROUTINE BNDEIG TAILORED C SPECIFICALLY FOR USE BY THE LASO PACKAGE. C INTEGER N, NBAND, NL, NR, LDE DOUBLE PRECISION A(NBAND,1), EIGVAL(1), ...
BRAINSia/ITK
Modules/ThirdParty/VNL/src/vxl/v3p/netlib/laso/dlaeig.f
FORTRAN
apache-2.0
1,280
SUBROUTINE MB02VD( TRANS, M, N, A, LDA, IPIV, B, LDB, INFO ) C C SLICOT RELEASE 5.5. C C Copyright (c) 2002-2012 NICONET e.V. C C PURPOSE C C To compute the solution to a real system of linear equations C X * op(A) = B, C where op(A) is either A or its transpose, A is an N-by-...
bgin/MissileSimulation
External/SLICOT/MB02VD.f
FORTRAN
mit
5,673
function atg(s,t,p) c **************************** c adiabatic temperature gradient deg c per decibar c ref: bryden,h.,1973,deep-sea res.,20,401-408 c units: c pressure p decibars c temperature t deg celsius (ipts-68) c salinity s (ipss-78...
guidov/pygamman
pygamman/fortran/gamman_nodata.f
FORTRAN
mit
71,145
module constants_mod implicit none real(kind=8), parameter :: PK = 1.3806503d-16, PC = 2.99792458d10 real(kind=8), parameter :: PH = 6.62606876d-27, PI = 3.14159265359d0 real(kind=8), parameter :: PME = 9.10938188d-28, PE = 4.8032d-10 end module constants_mod module general_routines_mod use constants_mod implici...
aasensio/pyiacsun
pyiacsun/radtran/sourceLTE/background.f90
FORTRAN
mit
22,596
!!!!!!!!!!!!!!!!!!!!!!!!!!! Program 4.6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! ! Please Note: ! ! ...
ucam-cl-dtg/naps-camfort
samples/book/four/code46.f90
FORTRAN
mit
2,302
SUBROUTINE ZGESC2( N, A, LDA, RHS, IPIV, JPIV, SCALE ) * * -- 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 .. ...
RayRuizhiLiao/ITK_4D
Modules/ThirdParty/VNL/src/vxl/v3p/netlib/lapack/complex16/zgesc2.f
FORTRAN
apache-2.0
3,946
C*PGQWIN -- inquire window boundary coordinates C%void cpgqwin(float *x1, float *x2, float *y1, float *y2); C+ SUBROUTINE PGQWIN (X1, X2, Y1, Y2) REAL X1, X2, Y1, Y2 C C Inquiry routine to determine the current window setting. C The values returned are world coordinates. C C Arguments: C X1 (...
RobinsonLab/pgplot
src/pgqwin.f
FORTRAN
apache-2.0
970
! MD5 of template: 9d30ae671698cd14111e8b34a690eedf ! ------------------------------------------------------------------------------ ! Copyright (c) 2009-13, Thomas P. Robitaille ! ! All rights reserved. ! ! Redistribution and use in source and binary forms, with or without ! modification, are permitted provided that t...
astrofrog/fortranlib
src/type_pdf2d.f90
FORTRAN
bsd-2-clause
17,101
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/iowdsz.f
FORTRAN
bsd-3-clause
2,459
C LAST UPDATE 17/07/95 C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C SUBROUTINE CENTRE(VALS,NV) IMPLICIT NONE C C Purpose: Determine centre of diffraction pattern from at least three C points C C Calls 3: RDCOMF, FRPRMN, ASK C Called by: FIX C C-+-+-+-+-+-+-+-...
scattering-central/CCP13
software/guifix/CENTRE.f
FORTRAN
bsd-3-clause
4,456
*> \brief \b CLARFY * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CLARFY( UPLO, N, V, INCV, TAU, C, LDC, WORK ) * * .. Scalar Arguments .. * CHARACTER ...
xianyi/OpenBLAS
lapack-netlib/SRC/clarfy.f
FORTRAN
bsd-3-clause
4,030
! vim: set ft=fortran sw=4 ts=4 : module mod_alloc implicit none private public :: alloc public :: dealloc contains subroutine alloc(x, n) real, allocatable, intent(in out) :: x(:) integer, intent(in) :: n integer :: stat character(len=100) :: errmsg if...
kkirstein/proglang-playground
Fortran/ModernFortran/stock-prices/mod_alloc.f90
FORTRAN
mit
790
subroutine forred(ia,ja,d,b,ist) c implicit double precision (a-h,o-z) dp c c reduce load vector block by block c dimension ia(4),ja(4),d(*),b(*) common/fissn0/neq,mxw,no,n1,nfissl(3) common/fissn2/nwb,nblk,nwu,meb,mxc,mpr,mch,ia1,ia2 common/fissl...
imohame/hex
src/forred.f
FORTRAN
mit
1,692
module ModGITMImplicit !DESCRIPTION: ! This module implements a point implicit scheme for the implicit ! part of the right hand side Rimp = R - Rexp that contributes to the ! the implicitly treated variables Uimp, a subset of U=(Uexp, Uimp). ! Rimp should depend on the local cell values only: no spatial der...
dpawlows/MGITM
src/ModGITMImplicit.f90
FORTRAN
mit
14,889
!COMPILER-GENERATED INTERFACE MODULE: Wed Oct 22 18:41:03 2014 MODULE DORMQR__genmod INTERFACE SUBROUTINE DORMQR(SIDE,TRANS,M,N,K,A,LDA,TAU,C,LDC,WORK, & &LWORK,INFO) INTEGER(KIND=4) :: LDC INTEGER(KIND=4) :: LDA CHARACTER(LEN=1) :...
jiangmi/DQMC_PAM_dilute
LAPACK/dormqr__genmod.f90
FORTRAN
bsd-2-clause
795
!----------------------------------------------------------------------------- best with 100 columns !> interface to SUNDIALS module modSUNDIALS use iso_c_binding private !> generic non-linear equations, i.e. x=f(x), solved by KINSOL type::noLinEq integer(C_INT),private::nEq=0 !< number of equations ...
mianzhi/fosolvers
src/libfosolvers/numerics/SUNDIALS.f90
FORTRAN
bsd-2-clause
30,072
!< FOODIE integrator: provide an implicit class of Backward Differentiation Formula schemes, from 1st to 4th order accurate. module foodie_integrator_backward_differentiation_formula !----------------------------------------------------------------------------------------------------------------------------------- !< F...
jacobwilliams/FOODIE
src/lib/foodie_integrator_backward_differentiation_formula.f90
FORTRAN
bsd-2-clause
11,580
*+SMPMAP SUBROUTINE SMPMAP (DATA1, IUV, NS, DATA2, NX, NY, STATUS) C --------------------------------------------------------- C C Samples and windows map data. C C Given: C DATA1 real*4() input map data C IUV integer(4) U,V coordinate window C NS integer sampli...
CavendishAstrophysics/maplib
smpmap.f
FORTRAN
bsd-3-clause
2,216
!-------------------------------------------------------------------------------! ! ! subroutine linlsq(n,m,f,y,w,c) ! This subroutine performs a fit of the datavalues (i,y(i)), i = 1,..,n ! ! to the linear modelfunction c(1)*...
bucricket/projectMASpreprocess
source/Smooth_Gapfill_LAI/linlsq.f90
FORTRAN
bsd-3-clause
2,069
*> \brief \b CTSQR01 * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CTSQR01(TSSW, M,N, MB, NB, RESULT) * * .. Scalar Arguments .. * INTEGER M, N, MB * .. ...
xianyi/OpenBLAS
lapack-netlib/TESTING/LIN/ctsqr01.f
FORTRAN
bsd-3-clause
13,186
*> \brief \b ICOPY * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE ICOPY( N, SX, INCX, SY, INCY ) * * .. Scalar Arguments .. * INTEGER INCX, INCY, ...
ryanrhymes/openblas
lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/icopy.f
FORTRAN
bsd-3-clause
3,270
!------------------------------------------------------------------------------- ! Copyright (c) 2019 FrontISTR Commons ! This software is released under the MIT License, see LICENSE.txt !------------------------------------------------------------------------------- !> \brief I/O and Utility module hecmw_visualizer ...
FrontISTR/FrontISTR
hecmw1/src/common/hecmw_visualizer_f.f90
FORTRAN
mit
2,076
MODULE collisions USE iso_c_binding, only: c_double IMPLICIT NONE real(c_double), bind(C, name="M") :: M = 0.1406 real(c_double), bind(C, name="R") :: R = 0.02625 real(c_double), bind(C) :: mu_s = 0.21 real(c_double), bind(C) :: mu_b = 0.05 real(c_double), bind(C) :: e = 0.89 double precision, dimension...
jzitelli/poolvr.py
poolvr/physics/collisions.f90
FORTRAN
mit
8,391
program poly ! Polymorphic-like real kind at compile time ! ! Output: ! cmake -Drealbits=32 2pi 6.28318548 ! cmake -Drealbits=64 2pi 6.2831853071795862 ! cmake -Drealbits=128 2pi 6.28318530717958647692528676655900559 use, intrinsic:: iso_fortran_env implicit none (type, external) @real_prec@ real...
scienceopen/fortran2015-examples
real/polymorphic.in.f90
FORTRAN
mit
527
subroutine UA_save_restart(TimeSimulation) use ModInputs implicit none real, intent(in) :: TimeSimulation call write_restart("UA/restartOUT/") end subroutine UA_save_restart
dpawlows/MGITM
srcInterface/UA_save_restart.f90
FORTRAN
mit
188
great(jj1,ll1). great(ee1,b1). great(aa1,w1). great(e1,a1). great(ff1,kk1). great(j1,y1). great(l1,aa1). great(f1,jj1). great(a1,g1). great(ee1,w1). great(ff1,bb1). great(cc1,t1). great(h1,bb1). great(j1,n1). great(c1,g1). great(s1,w1). great(dd1,aa1). great(ii1,ee1). great(c1,kk1). great(g1,dd1). great(ii1,kk1). great...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_choline_noiseless/test7.f
FORTRAN
apache-2.0
964
C*GRGTC0 -- obtain character digitization C+ SUBROUTINE GRGTC0 (CHAR,CENTER,POINTS,X,Y,MORE) C C GRPCKG (internal routine): obtain character digitization. C C (10-Feb-1983) C----------------------------------------------------------------------- EXTERNAL GRDAT2 LOGICAL CENTER INTEGER...
RobinsonLab/pgplot
src/grgtc0.f
FORTRAN
apache-2.0
1,558
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_setsta.f
FORTRAN
bsd-3-clause
13,055
subroutine lineinfo (number) c****************************************************************************** c This routine is an output subroutine for things having to do with c lines. c number = 1 gives input line data information c**********************************************************...
JNMcLane/MoogPy
MoogSource/Lineinfo.f
FORTRAN
mit
11,721
module data_wrangler use net_rates implicit none contains subroutine store_solution(ysol, net_history, k, t) double precision, dimension(:), intent(in) :: ysol double precision, dimension(:,:), intent(inout) :: net_history integer, intent(in) :: k double precision, intent(in) :: t intege...
dwillcox/pyreaclib
test/standard/C_f90/data_wrangler.f90
FORTRAN
bsd-3-clause
1,542
subroutine e3bvar (yl, acl, ul, & shpb, shglb, & xlb, lnode, & WdetJb, bnorm, pres, & u1, u2, u3, rmu, & unm, tau1n, tau2n, tau3n, & ...
SCOREC/phasta
phSolver/incompressible/e3bvar.f
FORTRAN
bsd-3-clause
38,194
SUBROUTINE CERRPO( PATH, NUNIT ) * * -- LAPACK test routine (version 3.1) -- * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. * November 2006 * * .. Scalar Arguments .. CHARACTER*3 PATH INTEGER NUNIT * .. * * Purpose * ======= * * CERRPO tests the ...
shengren/magma-1.6.1
testing/lin/cerpo.f
FORTRAN
bsd-3-clause
14,581
c penalty calcula el castigo en la chi² por picos en las estratificaciones c calcula tambien dcastigo que es la derivada de castigo respecto c a la varicion de cada parametro del modelo c ddcastigo es la derivada segunda. Como la unica componente c no nula es j=1 para todo k la guardo en...
cdiazbas/SIRcode
SIR2015/penalty.f
FORTRAN
mit
2,515
INTEGER FUNCTION IZMAX1( N, CX, INCX ) * * -- 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 .. I...
RayRuizhiLiao/ITK_4D
Modules/ThirdParty/VNL/src/vxl/v3p/netlib/lapack/util/izmax1.f
FORTRAN
apache-2.0
2,337
MODULE sweep_module use parallel_module use electron_module, only: Nfixed, Ndspin, Nspin, Nband, Nelectron use bz_module, only: weight_bz, Nbzsm use wf_module use cg_module, only: conjugate_gradient use array_bound_module, only: ML_0,ML_1,MBZ_0,MBZ_1,MSP_0,MSP_1,MB_0,MB_1 use gram_schmidt_module use io...
j-iwata/RSDFT
src/sweep_module.f90
FORTRAN
apache-2.0
8,553
less_toxic(ee1,p1). less_toxic(ll1,cc1). less_toxic(ll1,l1). less_toxic(s1,z1). less_toxic(y1,f1). less_toxic(ii1,u1). less_toxic(ii1,jj1). less_toxic(n1,l1). less_toxic(q1,d1). less_toxic(ff1,z1). less_toxic(m1,t1). less_toxic(o1,z1). less_toxic(x1,jj1). less_toxic(m1,l1). less_toxic(g1,f1). less_toxic(bb1,dd1). less_...
manoelfranca/cilppp
foldsCreator/files/datasets/alzheimer_toxic_noiseless/incremental5/test7.f
FORTRAN
apache-2.0
434
MODULE var_para_ps_nloc_g implicit none integer :: Mqr integer :: c_nzqr integer :: MMJJ_Q,MMJJ_t_Q integer :: MAXMJJ_Q, MAXMJJ_MAP_Q integer :: nrqr_xyz(6) integer,allocatable :: JJP_Q(:,:) integer,allocatable :: JJ_MAP_Q(:,:,:) integer,allocatable :: MJJ_MAP_Q(:) integer,allocatable :: MJJ_Q(:)...
j-iwata/RSDFT
src/var_para_ps_nloc_g.f90
FORTRAN
apache-2.0
2,998