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 |
|---|---|---|---|---|---|
great_ne(x1,f1).
great_ne(cc1,y1).
great_ne(v1,a1).
great_ne(z1,v1).
great_ne(cc1,w1).
great_ne(jj1,i1).
great_ne(dd1,h1).
great_ne(cc1,c1).
great_ne(y1,c1).
great_ne(kk1,v1).
great_ne(x1,c1).
great_ne(p1,dd1).
great_ne(y1,i1).
| manoelfranca/cilppp | foldsCreator/files/datasets/alzheimer_anime_noiseless/incremental4/test8.f | FORTRAN | apache-2.0 | 228 |
c-----------------------------------------------------------------------
c\BeginDoc
c
c\Name: dsconv
c
c\Description:
c Convergence testing for the symmetric Arnoldi eigenvalue routine.
c
c\Usage:
c call dsconv
c ( N, RITZ, BOUNDS, TOL, NCONV )
c
c\Arguments
c N Integer. (INPUT)
c N... | RayRuizhiLiao/ITK_4D | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/arpack/dsconv.f | FORTRAN | apache-2.0 | 3,564 |
!-------------------------------------------------------------
! Copyright (c) 2013-2014 Yuta Kawai. All rights reserved.
!-------------------------------------------------------------
!> @brief a template module
!!
!! @author Yuta Kawai
!!
!!
module DGCalcusUtil_mod
! モジュール引用; Use statements
!
use dc_types, o... | ywkawai/Dennou-OGCM | model/globalSWModel_DG/DGCalcusUtil_mod.f90 | FORTRAN | mit | 1,995 |
subroutine rho_tmp
!
! ---------------------------------------------------------
use tables
include 'real8.com'
parameter (arad=7.564d-15,elmass=9.108d-28, clight=2.99793d10 )
parameter (planck=6.625d-27,avogadro=6.025d23,boltz=1.380662d-16)
parameter (third=1.d0/3.d0, xmc=elmass*clight,gascon=avogadro*boltz)... | eladtan/white_dwarf_nova | rho_tmp.f90 | FORTRAN | mit | 6,973 |
*> \brief \b DSBGST
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DSBGV + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dsbgv.... | LighthouseHPC/lighthouse | src/Dlighthouse/static/Doxygen/lapack/dsbgv.f | FORTRAN | mit | 8,541 |
c-----------------------------------------------------------------------
c\BeginDoc
c
c\Name: dsaupd
c
c\Description:
c
c Reverse communication interface for the Implicitly Restarted Arnoldi
c Iteration. For symmetric problems this reduces to a variant of the Lanczos
c method. This method has been designed to comp... | blowekamp/ITK | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/arpack/dsaupd.f | FORTRAN | apache-2.0 | 28,706 |
!-------------------------------------------------------------
! Copyright (c) 2015-2015 Kawai Yuta. All rights reserved.
!-------------------------------------------------------------
!> @brief a template module
!!
!! @author Kawai Yuta
!!
!!
module mod_ocn
! モジュール引用; Use statements
!
!* gtool
use dc_typ... | ywkawai/DCPCM | ocn/ocn.f90 | FORTRAN | mit | 16,907 |
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/mixvar.f | FORTRAN | bsd-3-clause | 5,694 |
SUBROUTINE DSPR2(UPLO,N,ALPHA,X,INCX,Y,INCY,AP)
* .. Scalar Arguments ..
DOUBLE PRECISION ALPHA
INTEGER INCX,INCY,N
CHARACTER UPLO
* ..
* .. Array Arguments ..
DOUBLE PRECISION AP(*),X(*),Y(*)
* ..
*
* Purpose
* =======
*
* DSPR2 performs the symmetric rank 2 operation
... | wilseypa/llamaOS | src/tools/blas/dspr2.f | FORTRAN | bsd-2-clause | 7,281 |
c.......................................................................
c
c routine instrument stuffs the instrumental profile array; this
c routine called once
c routine phi computes the relative instrumental response
c (assumes a Gaussian)
c
c::::::::::::::::::::... | mrawls/BF-simulator | misc/convspec/instrument.f | FORTRAN | mit | 4,657 |
#include "eiscor.h"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! DARFGR (Double Auxiliary Routine Fuse Givens Rotations)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! This routine computes the product of two real Given's rotations and
! and stores the output... | andreasnoack/EiSCor.jl | deps/eiscor-master/src/double/DARFGR.f90 | FORTRAN | mit | 2,693 |
C*GRTTER -- test whether device is user's terminal (Sun/Convex-UNIX)
C+
SUBROUTINE GRTTER(STRING, SAME)
CHARACTER*(*) STRING
LOGICAL SAME
C
C Return a logical flag indicating whether the supplied device
C name is a name for the user's controlling terminal or not.
C (Some PGPLOT programs wish... | RobinsonLab/pgplot | sys/grtter.f | FORTRAN | apache-2.0 | 784 |
program simple
use flib_xpath
type(xml_t) :: fxml
integer :: status
character(len=100) :: what
call open_xmlfile("inventory.xml",fxml,status)
!
do
call get_node(fxml,path="//description",pcdata=what,status=status)
if (status < 0) exit
print *, "Appliance: ", trim(what)
enddo
end program simple
| rscircus/xmlf90 | Tutorial/xpath/simple.f90 | FORTRAN | bsd-3-clause | 320 |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C Changes (to run inder unix f77):
C -------------------------------
C Programme renamed from nuc123.for to new123.f
C ir=1 -> ir=5 ... input unit number
C iw=1 -> iw=6 ... output unit number
C COMMON /check/ itime -> COMMON /chec... | hickerson/bbn | fable/new123.f | FORTRAN | mit | 74,893 |
*> \brief <b> CPOSVXX computes the solution to system of linear equations A * X = B for PO matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CPOSVXX + dependencies
*> <a href="http://www.n... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/cposvxx.f | FORTRAN | bsd-3-clause | 26,423 |
*> \brief <b> ZGESVD computes the singular value decomposition (SVD) for GE matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZGESVD + dependencies
*> <a href="http://www.netlib.org/cgi... | LighthouseHPC/lighthouse | src/Dlighthouse/media/Doxygen/lapack/zgesvd.f | FORTRAN | mit | 142,043 |
*> \brief \b ZGETRF
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZGETRF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zgetr... | rangsimanketkaew/NWChem | src/lapack/double/zgetrf.f | FORTRAN | mit | 6,323 |
program CollidingDipolesDriver
!> @file CollidingDipoles.f90
!> Driver program for the problem of two colliding Lamb dipoles in the plane.
!> @author Peter Bosler, Sandia National Laboratories Center for Computing Research
!>
!> Driver program for the problem of two colliding Lamb dipoles in the plane.@n
!> Demonstrate... | pbosler/lpm-v2 | examples/CollidingDipoles.f90 | FORTRAN | mit | 22,113 |
subroutine dqpsrt(limit,last,maxerr,ermax,elist,iord,nrmax)
c***begin prologue dqpsrt
c***refer to dqage,dqagie,dqagpe,dqawse
c***routines called (none)
c***revision date 810101 (yymmdd)
c***keywords sequential sorting
c***author piessens, robert, applied math. and progr. div. -
c k. u. leuven... | aaronvincent/captngen | numerical/dqag/dqpsrt.f | FORTRAN | mit | 4,245 |
+incdir+${OC_WB_IP}/ve/wb_uart/tb/wb_uart_dev
${OC_WB_IP}/ve/wb_uart/tb/wb_uart_dev/wb_uart_dev_pkg.sv
| mballance/oc_wb_ip | ve/wb_uart/tb/wb_uart_dev/wb_uart_dev.f | FORTRAN | apache-2.0 | 105 |
great_ne(x1,w1).
great_ne(z1,m1).
great_ne(aa1,ii1).
great_ne(m1,a1).
great_ne(u1,m1).
great_ne(ee1,c1).
great_ne(q1,m1).
great_ne(u1,dd1).
great_ne(k1,a1).
great_ne(aa1,dd1).
great_ne(cc1,t1).
great_ne(cc1,m1).
great_ne(m1,v1).
great_ne(u1,bb1).
great_ne(jj1,f1).
great_ne(z1,x1).
great_ne(x1,i1).
great_ne(x1,ff1).
gre... | manoelfranca/cilppp | foldsCreator/files/datasets/alzheimer_anime_0.1noisy/train6.f | FORTRAN | apache-2.0 | 5,387 |
program volatile_doctest
use vecfor_R4P
type(vector_R4P) :: pt(1:2)
pt(1) = ex_R4P + ey_R4P + ez_R4P
pt(2) = ex_R4P + ey_R4P - ez_R4P
print "(L1)", pt(1) /= pt(2)
endprogram volatile_doctest | szaghi/VecFor | src/tests/vecfor_R4P/vecfor_R4P-doctest-100.f90 | FORTRAN | bsd-2-clause | 194 |
subroutine area(r,a)
use constants, only: pi
implicit none
real(kind=8), intent(in) :: r
real(kind=8), intent(in) :: a
a = pi * r**2
end subroutine area
| philipwangdk/HPC | uwhpsc/labs/lab8/problem1/area.f90 | FORTRAN | mit | 181 |
*> \brief <b> SSBEVX_2STAGE computes the eigenvalues and, optionally, the left and/or right eigenvectors for OTHER matrices</b>
*
* @generated from dsbevx_2stage.f, fortran d -> s, Sat Nov 5 23:58:06 2016
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.net... | buffer51/OpenBLAS | lapack-netlib/SRC/ssbevx_2stage.f | FORTRAN | bsd-3-clause | 20,940 |
!-------------------------------------------------------------------------------
!
!+ vertical interpolation
!
!-------------------------------------------------------------------------------
module mod_vintrpl
!-----------------------------------------------------------------------------
!
!++ Description:
!... | pyotr777/nicam-dc-mini | src/share/mod_vintrpl.f90 | FORTRAN | bsd-2-clause | 24,409 |
SUBROUTINE CTBT06( RCOND, RCONDC, UPLO, DIAG, N, KD, AB, LDAB,
$ RWORK, RAT )
*
* -- LAPACK test routine (version 3.1) --
* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
* November 2006
*
* .. Scalar Arguments ..
CHARACTER DIAG, UPLO
INTEGE... | maxhutch/magma | testing/lin/ctbt06.f | FORTRAN | bsd-3-clause | 4,131 |
*> \brief <b> SSYSVX computes the solution to system of linear equations A * X = B for SY matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SSYSVX + dependencies
*> <a href="http://www.... | LighthouseHPC/lighthouse | src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/ssysvx.f | FORTRAN | mit | 14,207 |
real*8 function fprati(p1,f1,p2,f2,p3,f3)
c given three points (p1,f1),(p2,f2) and (p3,f3), function fprati
c gives the value of p such that the rational interpolating function
c of the form r(p) = (u*p+v)/(p+w) equals zero at p.
c ..
c ..scalar arguments..
real*8 p1,f1,p2,f2,p3,f3
c ..local scalars..... | kmspriyatham/symath | scipy/scipy/interpolate/fitpack/fprati.f | FORTRAN | apache-2.0 | 855 |
module dStar_atm_lib
use dStar_atm_def
contains
subroutine dStar_atm_startup(datadir, ierr)
use exceptions_lib
character(len=*), intent(in) :: datadir
integer, intent(out) :: ierr
type(alert) :: already_initialized=alert(level=1,scope='dStar_atm_startup', &
& messa... | nworbde/dStar | dStar_atm/public/dStar_atm_lib.f | FORTRAN | mit | 3,012 |
program dom_configuration
! Use FoX DOM API to determine
! default values and settablility
! of DOM Configuration options.
use FoX_dom
implicit none
integer, parameter :: max_name_len = 50
integer, parameter :: max_configs = 50
type(DOMConfiguration), pointer :: config
integer :: num_configs
intege... | wilsonCernWq/Simula | fortran/utils/FoX-4.1.2/examples/dom_configuration.f90 | FORTRAN | mit | 2,348 |
great_rsd(p1,ee1).
great_rsd(g1,dd1).
great_rsd(e1,x1).
great_rsd(e1,f1).
great_rsd(t1,m1).
great_rsd(u1,t1).
great_rsd(w1,dd1).
great_rsd(p1,m1).
great_rsd(p1,h1).
great_rsd(ee1,g1).
great_rsd(ee1,dd1).
great_rsd(f1,hh1).
great_rsd(w1,m1).
great_rsd(u1,q1).
great_rsd(q1,ee1).
great_rsd(cc1,dd1).
great_rsd(f1,g1).
grea... | manoelfranca/cilppp | foldsCreator/files/datasets/alzheimer_scopolamine_noiseless/incremental10/train8.f | FORTRAN | apache-2.0 | 5,377 |
include 'm1.inc'
| clementval/claw-compiler | driver/unittests/res/include_resolver/normal/input/1.f90 | FORTRAN | bsd-2-clause | 19 |
C Copyright(C) 1988-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, ar... | nschloe/seacas | packages/seacas/applications/numbers/nu_gmtch2.f | FORTRAN | bsd-3-clause | 3,342 |
! $UWHPSC/codes/fortran/builtinfcns2.f90
program builtinfcns
implicit none
real :: pi, x, y ! note kind is not specified
! compute pi as arc-cosine of -1:
pi = acos(-1.0)
x = cos(pi)
y = sqrt(exp(log(pi)))**2
print *, "pi = ", pi
print *, "x = ", x
print *, "y = ", y
end pro... | philipwangdk/HPC | uwhpsc/codes/fortran/builtinfcns2.f90 | FORTRAN | mit | 337 |
*> \brief \b DLAMCH
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* DOUBLE PRECISION FUNCTION DLAMCH( CMACH )
*
* .. Scalar Arguments ..
* CHARACTER CMACH
* ..
*
*
... | xianyi/OpenBLAS | lapack-netlib/INSTALL/dlamch.f | FORTRAN | bsd-3-clause | 5,355 |
subroutine minimax(x,xmin,xmax,numpts)
c*****this routine simply finds the minimum and maximum values of array x
real*8 x(*)
xmax=x(1)
xmin=xmax
do 10 i=1,numpts
if (x(i).lt.xmin) xmin=x(i)
if (x(i).gt.xmax) xmax=x(i)
10 continue
return
end
| JNMcLane/MoogPy | MoogSource/Minimax.f | FORTRAN | mit | 310 |
*> \brief \b SSYGV
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SSYGV + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ssygv.f... | mverleg/1957 | lib/lapack/ssygv.f | FORTRAN | bsd-3-clause | 9,564 |
*> \brief \b SLA_GBRPVGRW computes the reciprocal pivot growth factor norm(A)/norm(U) for a general banded matrix.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SLA_GBRPVGRW + dependencies
*> <a hr... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/sla_gbrpvgrw.f | FORTRAN | bsd-3-clause | 4,706 |
module array_work
save
! sk- число регулярных участков в системе
! nkr- число вариаций по радиусу
! nka- число вариаций по углу
! nbeam- количество пучков
! mkk- число частиц в системе
! mk0 - число частиц, которое влетает в систему на каждом временном шаге
! ns2- 2*nk*sk - необходимо для опред... | Ademishe/WEMRA | array_work_asymm.f90 | FORTRAN | mit | 6,150 |
SUBROUTINE FN_COMBO( S, DEF_FILE )
!***********************************************************************
!* Sets Default File Name Extension for Combined UDS Files
!*
!* Language: Fortran
!*
!* Author: Stuart G. Mentzer
!*
!* Date: 2003/07/18
!******************************************************************... | DeadParrot/NHTSA-Tools | src/lib/fn_combo.for | FORTRAN | mit | 2,915 |
C$(7b) Control tables version 2 parameter setting routines.
C+SET_V2_MONITOR
subroutine set_v2_monitor ( lun, isamp, s )
C
C Prime the monitor block for later use by enquiry routines
C
C Given
C lun - i4 - logical unit number
C isamp - i4 - sample nu... | CavendishAstrophysics/postmortem | src/samplib/set_v2_monitor.f | FORTRAN | bsd-3-clause | 622 |
!-------------------------------------------------------------------------------!
! !
subroutine fitgauss(s,yag,y,w,nlocal,yfit)
! (1) Fit local asymmetric Gaussian functions !
! ... | bucricket/projectMASpreprocess | source/Smooth_Gapfill_LAI/fitgauss.f90 | FORTRAN | bsd-3-clause | 8,226 |
C
C+map_save
C
SUBROUTINE map_save (map_name, s)
C Saves the current map definition.
C
C Given:
C Default map name.
character*(*) map_name
C
C Returned:
C Status variable - must be zero on entry - otherwise error
integer s
C
C last change ... | CavendishAstrophysics/postmortem | src/mapsys/map_save.f | FORTRAN | bsd-3-clause | 3,282 |
SUBROUTINE ODE2( A, B, C, RT1, RT2 )
*
* -- 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 ..
DOUBLE PRECISION A... | petschow/mr3smp | SRC/LAPACK/ode2.f | FORTRAN | bsd-3-clause | 3,363 |
C COMPUTATION OF SPECIAL FUNCTIONS
C
C Shanjie Zhang and Jianming Jin
C
C Copyrighted but permission granted to use code in programs.
C Buy their book "Computation of Special Functions", 1996, John Wiley & Sons, Inc.
C
C Scipy changes:
C - Compiled into a single source file and ch... | anntzer/scipy | scipy/special/specfun/specfun.f | FORTRAN | bsd-3-clause | 385,594 |
! { dg-do compile }
! various checks which verify that we don't change do-iterators
DO I=1,5 ! { dg-error "cannot be redefined" "changing do-iterator 1" }
I=1 ! { dg-error "cannot be redefined" "changing do-iterator 1" }
END DO
DO I=1,5 ! { dg-error "cannot be redefined" "changing do-iterator 2" ... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/gcc/testsuite/gfortran.dg/do_iterator.f90 | FORTRAN | bsd-3-clause | 580 |
*> \brief \b DTPMV
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE DTPMV(UPLO,TRANS,DIAG,N,AP,X,INCX)
*
* .. Scalar Arguments ..
* INTEGER INCX,N
* CHAR... | mverleg/1957 | lib/blas/dtpmv.f | FORTRAN | bsd-3-clause | 10,671 |
COVRALL
C
C added call tempdata( ) to get value of Power (OHP)
C 10/20/2009
C
SUBROUTINE OVRALL
C PURPOSE IS TO CALCULATE STAGE PERFORMANCE VALUES
C AFTER FLOW ITERATION IS COMPLETED THROUGH THE LAST STAGE
C
REAL MFSTOP
LOGICAL PREVER
COMMON /SNTCP/G,AJ,PRPC,ICASE,PREVER,MFSTOP,... | DailyActie/Surrogate-Model | 01-codes/OpenMDAO-Framework-dev/contrib/axod/src/ovrall.f | FORTRAN | mit | 19,168 |
function fft(y) result(yh)
! FFT function
complex(kind=8), intent(in) :: y(:)
integer(kind=8) :: plan_forward
complex(kind=8), allocatable :: yh(:)
allocate(yh(size(y)))
call dfftw_plan_dft_1d_ (plan_forward, size(y), y, yh, FFTW_FORWARD, FFTW_ESTIMATE)
call dfftw_execute(plan_forward)
end function fft | buvoli/ETDSDC | Fortran/tools/functions/fft.f90 | FORTRAN | mit | 304 |
SUBROUTINE POWELL(P,XI,N,NP,FTOL,ITER,FRET)
PARAMETER (NMAX=20,ITMAX=200)
DIMENSION P(NP),XI(NP,NP),PT(NMAX),PTT(NMAX),XIT(NMAX)
FRET=FUNC(P)
DO 11 J=1,N
PT(J)=P(J)
11 CONTINUE
ITER=0
1 ITER=ITER+1
FP=FRET
IBIG=0
DEL=0.
DO 13 I=1,N
DO 12... | bamford/astrobamf | nr/fortran/powell.for | FORTRAN | mit | 1,000 |
program main
use finalist_header
use finalist
implicit none
type(Formura_Navigator) :: navi
integer :: seedsize
integer,allocatable:: seed(:)
integer :: epoch
print *, "Formura test main program."
call mpi_init(mpi_err)
call Formura_Init(navi, MPI_COMM_WORLD)
call random_seed(size=seedsize) ... | nushio3/formura | attic/f90-before-coopt/main.f90 | FORTRAN | mit | 2,760 |
!----------------------------------------------------------------------------- best with 100 columns
!> finite element discretizations
module modBasicFEM
public
contains
!> find Laplacian operator
!> NOTE: A must be pre-initialized to contain the temporary CSR matrix with duplications
subroutine findLapl... | mianzhi/fosolvers | src/libfosolvers/FEM/basicFEM.f90 | FORTRAN | bsd-2-clause | 4,428 |
! This file was automatically generated by SWIG (http://www.swig.org).
! Version 4.0.0
!
! Do not make changes to this file unless you know what you are doing--modify
! the SWIG interface file instead.
! ---------------------------------------------------------------
! Programmer(s): Auto-generated by swig.
! --------... | stan-dev/math | lib/sundials_6.0.0/src/idas/fmod/fidas_mod.f90 | FORTRAN | bsd-3-clause | 175,644 |
program prog
print *, "Fortran compilation is working."
end program prog
| winksaville/meson | test cases/fortran/1 basic/simple.f95 | FORTRAN | apache-2.0 | 78 |
subroutine sub1(sub)
implicit integer(s)
external sub
call sub(1)
end
subroutine sub2(num)
write(6, *) num
end
program prog
external sub2
call sub1(sub2)
end
| hickerson/bbn | fable/fable_sources/fable/test/valid/implied_external_arg_sub_2.f | FORTRAN | mit | 232 |
c Given arrays of flux and error, calculate the median SNR/pixel.
c Could add blanking values that are way off for whatever reason.
subroutine calcsnrmed(np,spec,espec,snrmed)
real spec(np),espec(np)
real snr(np)
external select
do i=1,np
snr(i) = spec(i)/espec(i)
end ... | bjweiner/DEEP2-redshift | calcsnrmed.f | FORTRAN | mit | 402 |
module EQS_COWELL
! Description:
! Contains the subroutines for computing the RHS of the Cowell equations in
! double- and quadruple-precision.
!
! Author:
! Davide Amato
! Space Dynamics Group - Technical University of Madrid
! d.amato@upm.es
!
! =============================================... | dkamato/NAPLES | eqs_cowell.f90 | FORTRAN | mit | 7,199 |
!===============================================================================
! Part of f90rad3, the Fortran module for dealing with GPR data files in the
! RAD3 format.
!
! Andy Nowacki <andy.nowacki@bristol.ac.uk>
!
! See the file LICENCE for licence details.
!======================================================... | anowacki/f90rad3 | src/f90rad3.f90 | FORTRAN | mit | 36,655 |
!
! ej8d.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 version.
!
! Thi... | BrunoSanchez/fisicaComp | lab1/8/ej8d.f90 | FORTRAN | mit | 1,250 |
!--------------------------------------------------------------------------------------
!
! Copyright 2014 Ecole Centrale de Nantes, 1 rue de la Noë, 44300 Nantes, France
!
! Licensed under the Apache License, Version 2.0 (the "License");
! you may not use this file except in compliance with the License.
! You ... | coderReview/Nemoh | Solver/Core/ALLOCATE_DATA.f90 | FORTRAN | apache-2.0 | 1,783 |
!-------------------------------------------------------------------------------
!
!+ Program physics kernel driver (cloud microphysics)
!
!-------------------------------------------------------------------------------
program physicskernel_microphysics
!-------------------------------------------------------------... | hisashiyashiro/nicam_dckernel_2016 | physicskernel_microphysics/src/main.f90 | FORTRAN | bsd-2-clause | 31,952 |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C
C FFTPACK 5.0
C Copyright (C) 1995-2004, Scientific Computing Division,
C University Corporation for Atmospheric Research
C Licensed under the GNU General Public License (GPL)
C
C Authors: Paul N. Swarztrauber and Richard A. Valent
C... | rpepr/rpEPR | fftpack5/xercon.f | FORTRAN | bsd-2-clause | 1,678 |
C Copyright(C) 2011-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/grepos/gp_mapev.f | FORTRAN | bsd-3-clause | 3,691 |
program bug
implicit none
integer :: i
real, dimension(2) :: a, b
real :: x
do i = 1, 2
x = abs(a(i))
!= stencil readOnce, pointed(dim=1) :: a
b(i) = x
end do
end program
| dorchard/camfort | samples/stencils/expected/intrinsic.f90 | FORTRAN | apache-2.0 | 195 |
*> \brief \b ZUNGBR
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZUNGBR + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zungbr.f... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/zungbr.f | FORTRAN | bsd-3-clause | 9,910 |
subroutine calc_pressure
use ModGITM
use ModPlanet
use ModConstants
use ModInputs, ONLY: iDebugLevel
implicit none
integer :: iSpecies, iBlock, iAlt
call report("calc_pressure",2)
NDensity = 0.0
do iSpecies = 1, nSpecies
NDensity(:,:,:,1:nBlocks) = &
NDensity(:,:,:,1:nBlocks) + ND... | dpawlows/MGITM | src/calc_pressure.orig.f90 | FORTRAN | mit | 2,651 |
*> \brief \b SGET06
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* REAL FUNCTION SGET06( RCOND, RCONDC )
*
* .. Scalar Arguments ..
* REAL RCO... | ryanrhymes/openblas | lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/LIN/sget06.f | FORTRAN | bsd-3-clause | 2,469 |
c\BeginDoc
c
c\Name: snaup2
c
c\Description:
c Intermediate level interface called by snaupd.
c
c\Usage:
c call snaup2
c ( IDO, BMAT, N, WHICH, NEV, NP, TOL, RESID, MODE, IUPD,
c ISHIFT, MXITER, V, LDV, H, LDH, RITZR, RITZI, BOUNDS,
c Q, LDQ, WORKL, IPNTR, WORKD, INFO )
c
c\Arguments
c
c IDO, BMAT, N... | WarrenWeckesser/scipy | scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/snaup2.f | FORTRAN | bsd-3-clause | 31,662 |
subroutine calc_electron_temperature(iBlock)
! Take values from empirical datasets fropm Viking (settei.F)
use ModGITM
use ModPlanet, only : ialtminiono
implicit none
integer, intent(in) :: iBlock
integer :: iLon,iLat,iAlt,iminiono
real :: Alt
call report("Electron Density", 2)
!Electron Temper... | dpawlows/MGITM | src/calc_electron_temperature.Mars.f90 | FORTRAN | mit | 1,778 |
*> \brief \b SGEBRD
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SGEBRD + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sgebr... | rangsimanketkaew/NWChem | src/lapack/single/sgebrd.f | FORTRAN | mit | 11,212 |
Subroutine FAST2D(PYRHO,PYVR,PYVZ,PYERG)
! BURSTING DIAPHRAGM "MUZZLE FLASH" - LCPFCT TEST # 4 August 1992
c
c The problem begins with 1000:1 pressure and 100:1 density ratios
c across a diaphragm inside a solid cylindrical barrel. The ideal wall
c of the barrel is 10 cells thick (1.0 cm) with its inne... | scienceopen/pyLCPFCT | src/fast2d.f | FORTRAN | mit | 11,319 |
subroutine sub
save num,
end
| hickerson/bbn | fable/fable_sources/fable/test/syntax_error/save_bad_comma.f | FORTRAN | mit | 47 |
great(ii1,a1).
great(bb1,s1).
great(v1,m1).
great(p1,n1).
great(c1,r1).
great(d1,n1).
great(a1,s1).
great(c1,e1).
great(s1,n1).
great(g1,ee1).
great(a1,ff1).
great(q1,x1).
great(ii1,x1).
great(dd1,b1).
great(q1,v1).
great(f1,d1).
great(y1,n1).
great(e1,b1).
great(e1,k1).
great(k1,o1).
great(g1,i1).
great(h1,d1).
great(... | manoelfranca/cilppp | foldsCreator/files/datasets/alzheimer_choline_noiseless/incremental4/test10.f | FORTRAN | apache-2.0 | 431 |
*
* Definition:
* ===========
*
* SUBROUTINE ZLAMTSQR( SIDE, TRANS, M, N, K, MB, NB, A, LDA, T,
* $ LDT, C, LDC, WORK, LWORK, INFO )
*
*
* .. Scalar Arguments ..
* CHARACTER SIDE, TRANS
* INTEGER INFO, LDA, M, N, K, MB, NB, LDT, LWORK, LDC
* ..
* ..... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/zlamtsqr.f | FORTRAN | bsd-3-clause | 11,814 |
SUBROUTINE CFFTB1 (N,C,CH,WA,IFAC)
IMPLICIT DOUBLE PRECISION (A-H,O-Z)
DIMENSION CH(*) ,C(*) ,WA(*) ,IFAC(*)
NF = IFAC(2)
NA = 0
L1 = 1
IW = 1
DO 116 K1=1,NF
IP = IFAC(K1+2)
L2 = IP*L1
IDO = N/L2
IDOT = IDO+IDO
... | djhaxton/CooleyTukeyMPI | DFFTPACK/cfftb1.f | FORTRAN | apache-2.0 | 1,817 |
!--------------------------------------------------------------------------------------
!
!Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
!
!--------------------------------------------------------------------------------------
!----------------------------------------------------------------------------------... | NREL/OpenWARP | source/NemohImproved/Nemoh/Solver/Core/COM_VAR.f90 | FORTRAN | apache-2.0 | 6,355 |
! This software is Copyright (c) 2012-2015 The Regents of the
! University of California. All Rights Reserved.
!
! Permission to copy and modify this software and its documentation
! for educational, research and non-profit purposes, without fee,
! and without a written agreement is hereby granted... | SCOREC/phasta | svLS/DOT.f | FORTRAN | bsd-3-clause | 3,676 |
!
! (C) 2004 by Argonne National Laboratory.
! See COPYRIGHT in top-level directory.
!
program wrong_reals
implicit none
include 'mpif.h'
integer myrank, numprocs, ierr
real*8 dval
real*4 fval
call MPI_INIT( ierr )
call MPI_COMM_RANK( MPI_COMM_WORLD, myrank,... | hydrosolutions/model_RRMDA_Themi | java/resources/linux64_gnu/share/examples_collchk/wrong_reals.f | FORTRAN | bsd-2-clause | 759 |
*> \brief \b ZTRCON
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZTRCON + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ztrcon.f... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/ztrcon.f | FORTRAN | bsd-3-clause | 8,043 |
SUBROUTINE CERRLQ( 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
* =======
*
* CERRLQ tests the ... | shengren/magma-1.6.1 | testing/lin/cerrlq.f | FORTRAN | bsd-3-clause | 8,595 |
! { dg-do compile }
! Tests fix for PR24223 - ICE on equivalence statement.
!
module FLAGS
character(len=5) :: Encodings
character :: at, dev
equivalence ( encodings(1:1),at ), ( encodings(2:2),dev)
end module FLAGS
! { dg-final { cleanup-modules "flags" } }
| the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/substring_equivalence.f90 | FORTRAN | bsd-2-clause | 266 |
*> \brief \b ZLATMT
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE ZLATMT( M, N, DIST, ISEED, SYM, D, MODE, COND, DMAX,
* RANK, KL, KU, PACK, A, ... | ryanrhymes/openblas | lib/OpenBLAS-0.2.19/lapack-netlib/TESTING/MATGEN/zlatmt.f | FORTRAN | bsd-3-clause | 45,801 |
!**********************************************************************************************************************************
! NOTE: documentation in this file is written for use with Doxygen 1.8.6 and higher.
!
!> WAMIT_Interp module
!!
!! This module is used for interpolating the QTFs used in the WAMIT and W... | OpenFAST/OpenFAST | modules/hydrodyn/src/WAMIT_Interp.f90 | FORTRAN | apache-2.0 | 35,369 |
subroutine rseday
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine writes the daily reach output to the .sed file
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! rch_dakm(:) |km**2 ... | grmpfhmbl/swatmodel-trusty64 | src/rseday.f | FORTRAN | cc0-1.0 | 1,448 |
program t
implicit none
REAL C,F,TEMP
C(F) = 5.0*(F - 32.0)/9.0
print '(f5.1)',c(32.0)
print '(f5.1)',c(212.0)
end program t
| thender/ppp | tests/t0228x/t.f | FORTRAN | apache-2.0 | 174 |
c
c
c
c =====================================================
subroutine qinit(meqn,mbc,mx,my,xlower,ylower,dx,dy,q,maux,aux)
c =====================================================
c
c # Set initial conditions for q.
c
implicit double precision (a-h,o-z)
dimension q(meqn,1-mbc:mx+mbc,... | clawpack/seismic | 2d/sloping_fault_water/qinit.f | FORTRAN | bsd-2-clause | 817 |
! *****************************COPYRIGHT*******************************
! (C) Crown copyright Met Office. All rights reserved.
! For further details please refer to the file COPYRIGHT.txt
! which you should have received as part of this distribution.
! *****************************COPYRIGHT****************************... | leifdenby/KiD | src/advection_interface.f90 | FORTRAN | bsd-3-clause | 5,257 |
subroutine SHrtoc(rcilm, ccilm, degmax, convention, switchcs)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! This subroutine will convert the real "geodesy 4-pi" spherical harmonic coefficients into
! complex form with either a 4 pi or unit normalization. The co... | pletnes/SHTOOLS | src/SHConvertCoef.f90 | FORTRAN | bsd-3-clause | 14,522 |
*> \brief \b ZHETRI_3
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZHETRI_3 + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zhet... | xianyi/OpenBLAS | lapack-netlib/SRC/zhetri_3.f | FORTRAN | bsd-3-clause | 7,695 |
*> \brief <b> DGEEV computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DGEEV + dependencies
*> <a href... | LighthouseHPC/lighthouse | src/lighthouseProject/lighthouseProject/static/Doxygen/lapack/dgeev.f | FORTRAN | mit | 16,954 |
module settings
use numerov
implicit none
public
real(rk) :: lengthScale ! multiplying length in internal units by this
! should give Angstroms
real(rk) :: energyScale ! multiplying energy in internal units by this
! should give kcal/mol
end module ... | cianmj/nrc | numerov/d2-S.f90 | FORTRAN | mit | 1,792 |
module triangleclass
use shapeclass
use image
implicit none
type, extends(shape) :: triangle
type(vector) :: vert(3), uvs(3), norms(3)
contains
! procedure :: info => info_fn
end type triangle
! private :: info_fn
contains
! subroutine info_fn(this)... | lewisfish/FortGL | src/triangle.f90 | FORTRAN | mit | 467 |
program test
use FoX_wxml, only : xmlf_t, xml_OpenFile, xml_Close
use FoX_wxml, only : xml_NewElement, xml_AddDOCTYPE, xml_AddParameterEntity
implicit none
character(len=*), parameter :: filename = 'test.xml'
type(xmlf_t) :: xf
call xml_OpenFile(filename, xf)
call xml_AddDOCTYPE(xf, 'html')
call xml_... | wilsonCernWq/Simula | fortran/utils/FoX-4.1.2/wxml/test/test_xml_AddParameterEntity_4.f90 | FORTRAN | mit | 466 |
let Char :* = Int;;
let GTInt (lo:Int) :* = (x:Int.(x>lo));;
let GTEInt (lo:Int) :* = (x:Int.(lo<=x));;
let LTInt (hi:Int) :* = (x:Int.(x<hi));;
let RInt (lo:Int) (hi:Int) :* = (x:Int. (and (lo<=x) (x<hi)));;
datatype String =
SNull of (u:Unit)
| SCons of (x:Char) (r:String)
;;
let rec concat (s1... | ucsc-proglang/sage | tests/bad/printf.5.f | FORTRAN | apache-2.0 | 6,923 |
SUBROUTINE ST_ALNM ( chrstr, ityp, iret )
C************************************************************************
C* ST_ALNM *
C* *
C* This subroutine determines whether a character is a letter, number *
C* or non-alphanumeric character. *
C* *
C* ST_ALNM ... | sgdecker/pygempak | stalnm.f | FORTRAN | apache-2.0 | 1,221 |
Program Dshaper
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Implicit None
Double Precision, Allocatable, Dimension(:) :: datain,particle_func,xin
Double Precision, Allocatable, Dimension(:) :: padded_datain,padded_dataout
Integer :: datain_size,i
Double Precision :: rescaler,width,m,b
Double Precision :: shift
Double... | DanOlds/DShaper | Dshaper1.0.f90 | FORTRAN | bsd-3-clause | 12,397 |
*> \brief \b DDRVRF1
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE DDRVRF1( NOUT, NN, NVAL, THRESH, A, LDA, ARF, WORK )
*
* .. Scalar Arguments ..
* INTEGER ... | buffer51/OpenBLAS | lapack-netlib/TESTING/LIN/ddrvrf1.f | FORTRAN | bsd-3-clause | 8,021 |
! { dg-do run }
! PR24268 Test case derived from example given by Iwan Kawrakow
! Embedded spaces in format strings should be ignored.
! Prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program pr24268
real x
character*13 line
line = "12.34"
read(line,*) x
write(line,10) x
10 ... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/gcc/testsuite/gfortran.dg/fmt_white.f | FORTRAN | bsd-3-clause | 569 |
PROGRAM TWOGAUSS5
*-
* after GENFIT by P.Francis, modified by Eileen
*
* Reads in a list of spectra, sends them to their rest frame,
* rebins part of them, normalised by its mean. This then has
* the mean spectrum subtracted from it.
*
* A 2-G model is then fit to the spectra, and the parameters output
*
* Input... | ZacByrne/wiggleZ-metallicity | metal/twogauss test/twogauss63.f | FORTRAN | mit | 41,118 |
program test
use FoX_wcml
implicit none
character(len=*), parameter :: filename = 'test.xml'
type(xmlf_t) :: xf
call cmlBeginFile(xf, filename, unit=-1)
call cmlStartCml(xf)
call cmlStartBand(xf, label="a1", spin="up")
call cmlFinishFile(xf)
end program test
| wilsonCernWq/Simula | fortran/utils/FoX-4.1.2/wcml/test/test_cmlStartBand_3.f90 | FORTRAN | mit | 279 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.