code stringlengths 2 1.05M | repo_name stringlengths 5 101 | path stringlengths 4 991 | language stringclasses 3
values | license stringclasses 5
values | size int64 2 1.05M |
|---|---|---|---|---|---|
Subroutine Banner(LU, Msg, Char, Top, Bot, Sides)
C$Id$
Implicit NONE
Integer LU
Character*(*) Msg
Character*(1) Char
Logical Top, Bot, Sides
C
Character*(80) Fmt
Integer MsgLen
C
C Figure out message length & create an appropriate format
C
MsgLen = Len(Msg)
C ... | rangsimanketkaew/NWChem | src/util/banner.f | FORTRAN | mit | 762 |
\ Sin and Cos table based on 512 degree circle.
\ -----------------------------------------------------------------------
create sin_tab
$0000 w, $00c9 w, $0192 w, $025b w, $0323 w, $03ec w, $04b5 w, $057d w,
$0645 w, $070d w, $07d5 w, $089c w, $0964 w, $0a2a w, $0af1 w, $0bb6 w,
$0c7c w, $0d41 w, $0e05 w, $0ec... | mark4th/t4 | src/examples/dots/sintab.f | FORTRAN | mit | 4,971 |
*> \brief \b SLANSP returns the value of the 1-norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a symmetric matrix supplied in packed form.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explo... | rangsimanketkaew/NWChem | src/lapack/single/slansp.f | FORTRAN | mit | 7,891 |
c ----------------------------------------------------------------------
c
c N.O.Jensen wake model
c by Juan P. Murcia <jumu@dtu.dk>
c
c ----------------------------------------------------------------------
c ----------------------------------------------------------------------
c get_RW(x,D,CT,kj)
c ----------------... | DTUWindEnergy/FUSED-Wake | fusedwake/noj/fortran/NOJ.f | FORTRAN | mit | 30,348 |
c-----------------------------------------------------------------------
c\BeginDoc
c
c\Name: dsortr
c
c\Description:
c Sort the array X1 in the order specified by WHICH and optionally
c applies the permutation to the array X2.
c
c\Usage:
c call dsortr
c ( WHICH, APPLY, N, X1, X2 )
c
c\Arguments
c ... | RayRuizhiLiao/ITK_4D | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/arpack/dsortr.f | FORTRAN | apache-2.0 | 5,534 |
MODULE test_mod
DOUBLE PRECISION, ALLOCATABLE, DIMENSION(:) :: array
integer :: nsize
END MODULE test_mod
SUBROUTINE assign_array(x,n)
USE test_mod
IMPLICIT NONE
INTEGER :: n
DOUBLE PRECISION :: x(n)
CALL test_allocated()
array = x
CALL test_allocated()
nsize = n
END SUBROUTINE assign_array
... | ForestClaw/forestclaw | snippets/tst_array_f90/array.f90 | FORTRAN | bsd-2-clause | 757 |
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/ffaddr.f | FORTRAN | bsd-3-clause | 2,904 |
C Copyright(C) 2008-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/algebra/ag_aparse.f | FORTRAN | bsd-3-clause | 6,296 |
! Modified to add f_quartic and fprime_quartic for quartic function,
! and to add epsilon as a module variable.
module functions
implicit none
real(kind=8) :: epsilon
save
contains
real(kind=8) function f_sqrt(x)
implicit none
real(kind=8), intent(in) :: x
f_sqrt = x**2 - 4.d0
end function... | philipwangdk/HPC | uwhpsc/2013/solutions/homework3/problem7/functions.f90 | FORTRAN | mit | 822 |
program t
implicit none
integer::i,j
integer::a(2)=0
integer::b(2,2)=0
integer::c(4)=0
integer::d(2)=0
integer::e(2)=0
integer::f(3,3)=0
integer,parameter::stride=2
type ttt
integer,pointer::p=>null()
end type ttt
type(ttt)::arr_of_ttt(2)
integer,target::x=88
11 forall (i=1:2) a(i)=i
pri... | thender/ppp | tests/t0357r/t.f90 | FORTRAN | apache-2.0 | 672 |
! { dg-do compile }
!
! PR 45456: [4.6 Regression] [OOP] Bogus pointer initialization error on pointer-valued TBP
!
! Contributed by Andrew Benson <abenson@its.caltech.edu>
module Merger_Trees
private
public :: mergerTree
type mergerTree
contains
procedure :: getNode => Tree_Node_Get
end type mergerTr... | the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/typebound_proc_18.f03 | FORTRAN | bsd-2-clause | 681 |
module rrlw_kg02
use parkind ,only : im => kind_im, rb => kind_rb
implicit none
save
!-----------------------------------------------------------------
! rrtmg_lw ORIGINAL abs. coefficients for interval 2
! band 2: 250-500 cm-1 (low - h2o; high - h2o)
!
! Initial version: JJMorcrette, ECMWF... | jsbj/climt | src/radiation/rrtm/src/rrtmg_lw/gcm_model/modules/rrlw_kg02.f90 | FORTRAN | bsd-3-clause | 2,079 |
subroutine setdat(icount)
c from * a practical guide to splines * by c. de boor
c to be called in main program l 2 m a i n .
c calls titand
c this routine is set up to provide the specific data for example 4
c in chapter xiv.
integer icount, i,k,l,lpkmax,ltkmax,n,ntau,ntmax
rea... | ndarmage/pppack | src/pppack/f77/pages.cs.wisc.edu/deboor/pgs/setdatx4.f | FORTRAN | mit | 1,073 |
! 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/multi_fortran.f90 | FORTRAN | apache-2.0 | 1,946 |
PROGRAM test_abstraction1
USE mo_column , ONLY: compute_column
REAL :: q ( 1 : 20 , 1 : 60 )
REAL :: t ( 1 : 20 , 1 : 60 )
INTEGER :: nproma
INTEGER :: nz
INTEGER :: p
INTEGER :: pstart
INTEGER :: pend
nproma = 20
nz = 60
pstart = 1
pend = nproma
DO p = pstart , pend , 1
q ( p , 1 ) = 0.0
t ( p , 1 ) ... | clementval/claw-compiler | test/claw/sca/sca_with_model_config_and_separate_size_and_iteration_dimension_variables/reference_main_acc.f90 | FORTRAN | bsd-2-clause | 633 |
! RUN: %S/test_symbols.sh %s %t %f18
!DEF: /MainProgram1/ipdt DerivedType
!DEF: /MainProgram1/ipdt/k TypeParam INTEGER(4)
type :: ipdt(k)
!REF: /MainProgram1/ipdt/k
integer, kind :: k
!REF: /MainProgram1/ipdt/k
!DEF: /MainProgram1/ipdt/x ObjectEntity INTEGER(int(int(k,kind=4),kind=8))
integer(kind=k) :: x
... | google/llvm-propeller | flang/test/Semantics/kinds03.f90 | FORTRAN | apache-2.0 | 3,193 |
! { dg-do run }
! { dg-options "-fdump-tree-original" }
!
! PR 43969: [OOP] ALLOCATED() with polymorphic variables
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
module foo_mod
type foo_inner
integer, allocatable :: v(:)
end type foo_inner
type foo_outer
class(foo_inner), allocatable ::... | the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/class_19.f03 | FORTRAN | bsd-2-clause | 973 |
subroutine sub(str)
character str*(*)
if (str(1:1) .eq. ' ') then
write(6, '(a)') 'str starts with a blank'
else
write(6, '(a)') 'str does not start with a blank'
endif
end
program prog
character str2*2
str2 = ' '
call sub(str2)
str2 = '... | hickerson/bbn | fable/fable_sources/fable/test/valid/subroutine_5.f | FORTRAN | mit | 354 |
!******************************************************************************
!******************************************************************************
MODULE parallelism_auxiliary
!/* external modules */
USE parallelism_constants
USE resfort_library
USE mpi
!/* setup ... | restudToolbox/package | respy/fortran/parallelism/parallelism_auxiliary.f90 | FORTRAN | mit | 25,022 |
C Famous difficult cases in Fortran syntax
INTEGER FORMAT(10),H3
DO10I=1,10
DO10I=1.10
10 CONTINUE
DOUBLE PRECISION I=1,10
DOUBLE PRECISION I=1.10
END DO
1 format(3H)=(I9/I10)
2 format(H3)=(I9/I10)
end
REALFUNCTIONF(M,N)
REALFUNCTIONF(M,N)
REALFUNCT... | OS2World/DEV-FORTRAN-UTIL-ftnchek | test/chestnuts.f | FORTRAN | mit | 381 |
MODULE FORTGRAPHER
!**********************************************************************
! BSD SOFTWARE LICENSE
!************************
! PERTAINS TO FORTGRAPHER
!
! COPYRIGHT(c) 2011-2012 EHAB ALI HASSAN:
!****************************************
! THIS CODE IS DEVELOPED BY: EHAB ALI HASSAN; EHAB@UTEXAS.... | ehabhassan/iMust | fortgrapher.f90 | FORTRAN | bsd-2-clause | 143,829 |
C+scan_sample_ryle
subroutine scan_sample_ryle (lsf_num, status)
C ---------------------------------------------
C
C Executes the SCAN-SAMPLE-FILE command for the RYLE telescope.
C
C Given:
C LSF_NUM integer logical sample file number
C STATUS integer status value
C
C ... | CavendishAstrophysics/postmortem | src/lsfsys/scan_sample_ryle.f | FORTRAN | bsd-3-clause | 16,417 |
program t
print '(a)',f(1)
contains
character(7) function f(i)
integer,optional::i
if (present(i)) then
f='present'
else
f='absent'
endif
end function f
end program t
| thender/ppp | tests/t0199r/t.f90 | FORTRAN | apache-2.0 | 201 |
*> \brief \b CERREC
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE CERREC( PATH, NUNIT )
*
* .. Scalar Arguments ..
* CHARACTER*3 PATH
* INTEGER ... | grisuthedragon/OpenBLAS | lapack-netlib/TESTING/EIG/cerrec.f | FORTRAN | bsd-3-clause | 8,875 |
*> \brief \b SLATMS
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE SLATMS( M, N, DIST, ISEED, SYM, D, MODE, COND, DMAX,
* KL, KU, PACK, A, LDA, WOR... | grisuthedragon/OpenBLAS | lapack-netlib/TESTING/MATGEN/slatms.f | FORTRAN | bsd-3-clause | 40,214 |
! { dg-do run }
! pr17143
! does not print 2*63 correctly
character*25 l
integer(kind=8) i
data i /1/
do j = 1,63
i = i * 2
end do
write(l,*)i
if (l.ne.' -9223372036854775808') then
! ^
! the space is required before a number
ca... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/gcc/testsuite/gfortran.dg/pr17143.f90 | FORTRAN | bsd-3-clause | 355 |
*> \brief <b> SGGEVX 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 SGGEVX + dependencies
*> <a hr... | LighthouseHPC/lighthouse | src/Dlighthouse/static/Doxygen/lapack/sggevx.f | FORTRAN | mit | 29,366 |
subroutine merge_str(str1, str2)
character (len=100) :: str1, str2, temp
integer :: i, j, k
i = 1
do while (iachar(str1(i:i)) /= 32 .and. &
iachar(str1(i:i)) /= 9 .and. &
i < 100)
i=i+1
enddo
j = 1
do while (iachar(str2(j:j)) /= 32 .and. &
iachar(str2(j:j)) /=... | dpawlows/MGITM | util/EMPIRICAL/srcIE/merge_str.f90 | FORTRAN | mit | 793 |
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! File: control.f90
! Contains general control subroutines for all version of snctrl.
! This is the module which the user includes.
!
! 26 Dec 2008: v4 of the control interface.
! 09 Feb 2010: v5.
!++++++++++++++++++++++++++++++++++++++++... | snopt/snctrl | src/control.f90 | FORTRAN | mit | 15,429 |
!
! Copyright 2016 ARTED 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 to... | ARTED/ARTED_noc | src/modified_Broyden_mixing.f90 | FORTRAN | apache-2.0 | 2,917 |
c iriorbit.for, version number can be found at the end of this comment.
c-----------------------------------------------------------------------
c simple program for calculating IRI parameters along an orbit
c-----------------------------------------------------------------------
c
c
INTEGER pad1(6),jdp... | scienceopen/pyiri90 | src/iriorbit.for | FORTRAN | mit | 3,193 |
*> \brief \b DORBDB6
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DORBDB6 + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dorbdb... | buffer51/OpenBLAS | lapack-netlib/SRC/dorbdb6.f | FORTRAN | bsd-3-clause | 8,327 |
program readout
implicit none
integer, parameter :: linelength = 120
character (len=linelength) :: line
integer :: ierror
open (unit=10, file="test.dat", action="read", status="old", iostat=ierror)
if (ierror /= 0) then
print*, "Failed to open test.dat"
stop
end if
readfile : do
read (uni... | kwailamchan/programming-languages | fortran/f95_manual/read.f95 | FORTRAN | mit | 791 |
module leastsquare
implicit none
contains
subroutine zls(Ao,bo,mtr,pr,x)
!Solves equation A*x=b in Least Square sense, using complex variables
!mtr=0 sends A and b to lapack. This system is solved in Least Square sense.
!mtr=1 sends A^dagger*A and A^dagger*b to lapack. This system is solved exact.
!m... | JohanSchott/Pade_approximants | fortran/leastsquare.f90 | FORTRAN | mit | 11,401 |
less_toxic(p1,f1).
less_toxic(cc1,aa1).
less_toxic(m1,p1).
less_toxic(j1,z1).
less_toxic(o1,h1).
less_toxic(m1,aa1).
less_toxic(ee1,t1).
less_toxic(ll1,w1).
less_toxic(w1,v1).
less_toxic(b1,l1).
less_toxic(s1,h1).
less_toxic(o1,c1).
less_toxic(hh1,d1).
less_toxic(ll1,dd1).
less_toxic(kk1,t1).
less_toxic(r1,w1).
less_to... | manoelfranca/cilppp | foldsCreator/files/datasets/alzheimer_toxic_0.3noisyOnTest/train7.f | FORTRAN | apache-2.0 | 7,726 |
!-------------------------------------------------------------------------------
!>
!! Basic state module
!!
!! @par Description
!! This module provides the subroutines for basic state.
!!
!! @author H.Tomita
!!
!! @par History
!! @li 2004-02-17 (H.Tomita) Imported from igdc-4.33
!! @li 2011-08-13 (A.... | nicamdc-dev/nicamdc | src/nhm/share/mod_bsstate.f90 | FORTRAN | bsd-2-clause | 17,504 |
program volatile_doctest
use vecfor_R4P
type(vector_R4P) :: pt(0:2)
pt(1) = 2 * ex_R4P + 3 * ey_R4P
pt(2) = ex_R4P
pt(0) = pt(1).paral.pt(2)
print "(3(F3.1,1X))", abs(pt(0)%x), abs(pt(0)%y), abs(pt(0)%z)
endprogram volatile_doctest | szaghi/VecFor | src/tests/vecfor_R4P/vecfor_R4P-doctest-5.f90 | FORTRAN | bsd-2-clause | 236 |
MODULE A
USE B
USE C
!
IMPLICIT NONE
PRIVATE
PUBLIC :: construct, destruct
PUBLIC :: transfer
PUBLIC :: allocate_int_state
INTERFACE xfer_var
MODULE PROCEDURE xfer_var_r2
MODULE PROCEDURE xfer_var_r3
MODULE PROCEDURE xfer_var_r4
MODULE PROCEDURE xfer_var_i2
END INTERFACE
INTERFACE xfer_idx
MODULE PROCEDU... | Try2Code/codegraph | test/test.f90 | FORTRAN | bsd-3-clause | 1,995 |
C
C
*+ plot_shopt
subroutine plot_shopt(status)
C -----------------------------
C
C Display options as setup
C
C Updated:
C error status
integer status
C
*-
include '../include/plt_basic_defn.inc'
include '../include/plt_image_defn.inc'
C character option
character c... | CavendishAstrophysics/anmap | graphic_lib/plot_shopt.f | FORTRAN | bsd-3-clause | 2,037 |
*> \brief \b CCHKAA
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* PROGRAM CCHKAA
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> CCHKAA is the main test program for the C... | grisuthedragon/OpenBLAS | lapack-netlib/TESTING/LIN/cchkaa.f | FORTRAN | bsd-3-clause | 38,846 |
SUBROUTINE DSPR(UPLO,N,ALPHA,X,INCX,AP)
* .. Scalar Arguments ..
DOUBLE PRECISION ALPHA
INTEGER INCX,N
CHARACTER UPLO
* ..
* .. Array Arguments ..
DOUBLE PRECISION AP(*),X(*)
* ..
*
* Purpose
* =======
*
* DSPR performs the symmetric rank 1 operation
*
* A := alph... | alexurba/cftb | src/libsrc/blas/SRC/dspr.f | FORTRAN | mit | 5,919 |
SUBROUTINE floop23_F90(N, x, a, b, c, d, y)
INTEGER i, N
REAL*4 x(N), a(N), b(N), c(N), d(N), y(N)
x = a*b + c*d; y = b+d
RETURN
END
SUBROUTINE floop23_F90Overhead(N, x, a, b, c, d, y)
INTEGER i, N
REAL*4 x(N), a(N), b(N), c(N), d(N), y(N)
RETURN
EN... | MSV-Project/IBAMR | ibtk/third_party/blitz-0.10/benchmarks/floop23f90.f90 | FORTRAN | bsd-3-clause | 322 |
subroutine fpknot(x,m,t,n,fpint,nrdata,nrint,nest,istart)
implicit none
c subroutine fpknot locates an additional knot for a spline of degree
c k and adjusts the corresponding parameters,i.e.
c t : the position of the knots.
c n : the number of knots.
c nrint : the number of knotintervals... | maciejkula/scipy | scipy/interpolate/fitpack/fpknot.f | FORTRAN | bsd-3-clause | 2,079 |
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/unisnp.f | FORTRAN | bsd-3-clause | 3,481 |
*> \brief \b CSYR
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CSYR + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/csyr.f"> ... | jmfranck/pyspecdata | lapack-3.4.0/SRC/csyr.f | FORTRAN | bsd-3-clause | 7,695 |
*> \brief \b CDRVHE_AA_2STAGE
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE CDRVHE_AA_2STAGE(
* DOTYPE, NN, NVAL, NRHS, THRESH, TSTERR, NMAX,
*... | xianyi/OpenBLAS | lapack-netlib/TESTING/LIN/cdrvhe_aa_2stage.f | FORTRAN | bsd-3-clause | 15,232 |
*> \brief \b CGETRF2
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* RECURSIVE SUBROUTINE CGETRF2( M, N, A, LDA, IPIV, INFO )
*
* .. Scalar Arguments ..
* INTEGER ... | mverleg/1957 | lib/lapack/cgetrf2.f | FORTRAN | bsd-3-clause | 7,151 |
! { dg-do compile }
!
! Created to check this ambiguity when
! constructors were added. Cf. PR fortran/39427
module m
type t
end type t
end module m
use m
type t ! { dg-error "Derived type definition of 't' at .1. has already been defined" }
end type t ! { dg-error "Expecting END PROGRAM statement" }
end
! { d... | the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/used_types_25.f90 | FORTRAN | bsd-2-clause | 355 |
SUBROUTINE STRSM ( SIDE, UPLO, TRANSA, DIAG, M, N, ALPHA, A, LDA,
$ B, LDB )
* .. Scalar Arguments ..
CHARACTER*1 SIDE, UPLO, TRANSA, DIAG
INTEGER M, N, LDA, LDB
REAL ALPHA
* .. Array Arguments ..
REAL A( LDA, * )... | mcflugen/roms-lite | src/roms/Lib/ARPACK/BLAS/strsm.f | FORTRAN | mit | 12,281 |
*> \brief \b DLA_SYRPVGRW computes the reciprocal pivot growth factor norm(A)/norm(U) for a symmetric indefinite matrix.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DLA_SYRPVGRW + dependencies ... | mverleg/1957 | lib/lapack/dla_syrpvgrw.f | FORTRAN | bsd-3-clause | 9,682 |
PROGRAM Computer_Usage_Records
!===========================================================
!´Ó¼üÅÌÉ϶ÁÈ¡Óû§ºÅÂ룬ËÑË÷¼ÆËã»úʹÓüǼÎļþ£¬Èç¹ûºÅÂëÒ»Ö£¬
!ÔòÏÔʾÓû§µÄÐÅÏ¢
!
!Computer_Usage_Info :
!FileName :
!OpenStatus :
!InputStatus :
!User :
!InputNumber :
!Use... | quchunguang/test | testfortran90/e_432_01.f90 | FORTRAN | mit | 1,741 |
program main
use compute_module
implicit none
double precision :: x, y, z
x = 1.0
y = 2.0
z = compute(x, y)
call print_result(z)
end program main
| bt3gl/Numerical-Methods-for-Physics | others/makefiles/3/main.f90 | FORTRAN | apache-2.0 | 169 |
subroutine clawpack46_qinit(maxmx,maxmy, meqn,mbc,mx,my,
& xlower,ylower,dx,dy,q,maux,aux)
implicit none
integer meqn, mbc, mx, my, maux, maxmx, maxmy
double precision xlower, ylower, dx, dy
double precision q(1-mbc:maxmx+mbc, 1-mbc:maxmy+mbc, meqn)
double precision aux(1-m... | ForestClaw/forestclaw | applications/clawpack/advection/2d/periodic/user_4.6/qinit.f | FORTRAN | bsd-2-clause | 847 |
!< FURY test of [[qreal]].
program fury_test_qreal_mul
!-----------------------------------------------------------------------------------------------------------------------------------
!< FURY test of [[qreal]].
!--------------------------------------------------------------------------------------------------------... | szaghi/FURY | src/tests/fury_test_qreal_mul.f90 | FORTRAN | bsd-2-clause | 6,636 |
*> \brief \b DLANST
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DLANST + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlans... | jmfranck/pyspecdata | lapack-3.4.0/SRC/dlanst.f | FORTRAN | bsd-3-clause | 5,004 |
!==========================================================================
elemental function gsw_sa_from_sp_baltic (sp, long, lat)
!==========================================================================
!
! For the Baltic Sea, calculates Absolute Salinity with a value
! computed analytically from Practical Salini... | jamesorr/mocsy | src/GSW/gsw_sa_from_sp_baltic.f90 | FORTRAN | mit | 1,518 |
*> \brief \b SLAHQR computes the eigenvalues and Schur factorization of an upper Hessenberg matrix, using the double-shift/single-shift QR algorithm.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download S... | xianyi/OpenBLAS | lapack-netlib/SRC/slahqr.f | FORTRAN | bsd-3-clause | 20,034 |
SUBROUTINE SSYR2K( UPLO, TRANS, N, K, ALPHA, A, LDA, B, LDB,
$ BETA, C, LDC )
* .. Scalar Arguments ..
CHARACTER*1 UPLO, TRANS
INTEGER N, K, LDA, LDB, LDC
REAL ALPHA, BETA
* .. Array Arguments ..
REAL A( LDA, * ),... | yaowee/libflame | src/flablas/f2c/ssyr2k.f | FORTRAN | bsd-3-clause | 11,012 |
*> \brief \b ZGELQF
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZGELQF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zgelq... | mverleg/1957 | lib/lapack/zgelqf.f | FORTRAN | bsd-3-clause | 7,579 |
program volatile_doctest
use vecfor_R4P
type(vector_R4P) :: pt(0:1)
pt(1) = 1 * ex_R4P + 2 * ey_R4P + 1 * ez_R4P
pt(0) = pt(1) + 2_I2P
print "(3(F3.1,1X))", abs(pt(0)%x), abs(pt(0)%y), abs(pt(0)%z)
endprogram volatile_doctest | szaghi/VecFor | src/tests/vecfor_R4P/vecfor_R4P-doctest-80.f90 | FORTRAN | bsd-2-clause | 229 |
LOGICAL FUNCTION LSAME( CA, CB )
*
* -- LAPACK auxiliary routine (version 3.1) --
* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
* November 2006
*
* .. Scalar Arguments ..
CHARACTER CA, CB
* ..
*
* Purpose
* =======
*
* LSAME returns .TRUE. if CA is th... | wavefunction91/HAXX | src/hblas/fortran_bindings/util/lsame.f | FORTRAN | bsd-3-clause | 2,412 |
*> \brief \b CLA_HERCOND_X
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CLA_HERCOND_X + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack... | jmfranck/pyspecdata | lapack-3.4.0/SRC/cla_hercond_x.f | FORTRAN | bsd-3-clause | 7,430 |
subroutine patrib(iplane,plant,tlive,tmpave,nowres,smrati,dwood,
1 ptlive)
c
c ***************************************************************
c * NOTE: ALL SOURCE FILES THAT REFERENCE "CRINPT3.INC" MUST BE *
c * COMPILED WITH THE *NEW* CRINPT.INC TO WORK WITH THIS *
c * FILE. ... | akrherz/idep | src/wepp2010.1/patrib.for | FORTRAN | mit | 17,431 |
MODULE SysSubs
! This module contains routines with system-specific logic and references.
! It also contains standard (but not system-specific) routines it uses.
! SysGnu.f90 is specifically for the GNU Fortran (gfortran) compiler on Windows.
! It contains the following routines:
! FUNCTION ... | quevedin/HARP_Opt | Source/WT_Perf/v3.05.00a-adp/Source/NWTC_Subroutine_Library/NWTC_Lib_v1.05.00/source/SysGnuWin.f90 | FORTRAN | apache-2.0 | 25,980 |
! { dg-do compile }
! { dg-options "-c -std=f95" }
! Testcase from PR fortran/25094
! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
MODULE M1
TYPE T1
INTEGER :: I
END TYPE T1
INTERFACE I
MODULE PROCEDURE F1
END INTERFACE
PRIVATE ! :: T1,F1
PUBLIC :: I
CONTAINS
INTEGER FUNCTION F1(D) ! { d... | the-linix-project/linix-kernel-source | gccsrc/gcc-4.7.2/gcc/testsuite/gfortran.dg/interface_15.f90 | FORTRAN | bsd-2-clause | 447 |
*> \brief \b STREVC
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download STREVC + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/strev... | mverleg/1957 | lib/lapack/strevc.f | FORTRAN | bsd-3-clause | 36,794 |
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/xyaxis.f | FORTRAN | bsd-3-clause | 8,331 |
!***********************************************************************************************************************************
!** S U B R O U T I N E K I N E T I C S **
!****************************************************... | velociwabbit/W2 | pdxversion/source/w2exe/water-quality.f90 | FORTRAN | bsd-3-clause | 75,299 |
!RUN: %S/test_modfile.sh '%S/Inputs/modfile09-*' %f18 %t
| endlessm/chromium-browser | third_party/llvm/flang/test/Semantics/modfile09.f90 | FORTRAN | bsd-3-clause | 57 |
subroutine banslv ( w, nroww, nrow, nbandl, nbandu, b )
c from * a practical guide to splines * by c. de boor
c companion routine to banfac . it returns the solution x of the
c linear system a*x = b in place of b , given the lu-factorization
c for a in the workarray w .
c
c****** i n p u t **... | ndarmage/pppack | src/pppack/f77/pages.cs.wisc.edu/deboor/pgs/banslv.f | FORTRAN | mit | 2,275 |
! RUN: %S/test_symbols.sh %s %t %f18
! Explicit and implicit entities in blocks
!DEF: /s1 (Subroutine) Subprogram
subroutine s1
!DEF: /s1/x ObjectEntity INTEGER(4)
integer x
block
!DEF: /s1/Block1/y ObjectEntity INTEGER(4)
integer y
!REF: /s1/x
x = 1
!REF: /s1/Block1/y
y = 2.0
end block
block
!DEF: ... | google/llvm-propeller | flang/test/Semantics/symbol05.f90 | FORTRAN | apache-2.0 | 2,729 |
C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C * *
C * copyright (c) 2011 by UCAR *
C * *
C * University Corpora... | bgin/MissileSimulation | External/FFTPACK/cmf2kb.f | FORTRAN | mit | 3,508 |
SUBROUTINE CNTAB2(NN,NI,NJ,H,HX,HY,HYGX,HXGY,UYGX,UXGY,UXY)
PARAMETER (MAXI=100,MAXJ=100,TINY=1.E-30)
DIMENSION NN(NI,NJ),SUMI(MAXI),SUMJ(MAXJ)
SUM=0
DO 12 I=1,NI
SUMI(I)=0.0
DO 11 J=1,NJ
SUMI(I)=SUMI(I)+NN(I,J)
SUM=SUM+NN(I,J)
11 CONTINUE
12 CON... | bamford/astrobamf | nr/fortran/cntab2.for | FORTRAN | mit | 1,066 |
! Copyright (C) 2011 by the f2k3-lua authors, see AUTHORS file.
! Licensed under the MIT license, see LICENSE file.
module flua
use ISO_C_BINDING, only: C_CHAR, C_INT, C_FUNPTR, C_PTR, C_NULL_PTR
private :: p_characterToCharArray
integer, PARAMETER :: LUA_MULTRET = -1
integer, PARAMETER :: LUA_REGISTR... | llarsen71/flua | src/flua.f90 | FORTRAN | mit | 60,879 |
C*GRGE00 -- open output device; device handler routine (VMS)
C+
INTEGER FUNCTION GRGE00(CTYP,LUN,CHR,LCHR)
C
C General routine to open plot device. This version can open
C 1) A file with of any FORM and CARRIAGECONTROL,
C 2) Any local device for QIO operations,
C 3) A remote device over a network using ... | RobinsonLab/pgplot | sys_vms/grge00.f | FORTRAN | apache-2.0 | 5,723 |
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/wrnast.f | FORTRAN | bsd-3-clause | 8,950 |
!****h* root/fortran/test/tf_F08.f90
!
! NAME
! tf_F08.f90
!
! FUNCTION
! Contains functions that are part of the F2008 standard and needed by
! the hdf5 fortran tests.
!
! COPYRIGHT
! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
! Copyright by The HDF Group. ... | gnu3ra/SCC15HPCRepast | INSTALLATION/hdf5-1.8.15-patch1/fortran/test/tf_F08.f90 | FORTRAN | bsd-3-clause | 4,237 |
C Copyright(C) 2011-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 provid... | nschloe/seacas | packages/seacas/applications/gen3d/g3_getspt.f | FORTRAN | bsd-3-clause | 5,513 |
subroutine rdat(nowcrp)
c
c + + + PURPOSE + + +
c Sets up the input to HDRIVE. It gets the distance and time
c location for depth calculations. Converts ALPHA and rainfall
c excess rates to internal length, for T from 0 to T(N), for N
c between 1 and NS+1.
c
c Called from IRS.
c... | akrherz/idep | src/wepp2010.1/rdat.for | FORTRAN | mit | 4,740 |
subroutine dcap(flagm,flagt,q,sf,c1,z,effsh,depsid,depmid,werod,
1 wflow,n,crsh,covsh,maxe,excess,tb,ielmt,df,ichan)
c
c + + + PURPOSE + + +
c
c SR DCAP computes detachment capacity by concentrated
c flow in channels.
c
c Called from: SRS CHNRT, DETACH
c Author(s): Ascough II, R. van d... | akrherz/idep | src/wepp2012-src/dcap.for | FORTRAN | mit | 5,879 |
double precision function dpowint(xlow,xhigh,ylow,yhigh,xval,pow)
C%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
C %
C Copyright (C) 1996, The Board of Trustees of the Leland Stanford %
C Junior University. All rig... | fcecinati/QUICS_UOB | visim/visim_src/gslib/dpowint.f | FORTRAN | bsd-2-clause | 1,660 |
*> \brief \b SGELQF
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SGELQF + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sgelqf.f... | xianyi/OpenBLAS | lapack-netlib/SRC/sgelqf.f | FORTRAN | bsd-3-clause | 7,681 |
tinyalu_pkg.sv
tinyalu_bfm.sv
tester.sv
coverage.sv
scoreboard.sv
top.sv
| timtian090/Playground | UVM/UVMPrimer/03_Interfaces_and_BFMs/tb.f | FORTRAN | mit | 73 |
SUBROUTINE SLASD1( NL, NR, SQRE, D, ALPHA, BETA, U, LDU, VT, LDVT,
$ IDXQ, IWORK, WORK, INFO )
*
* -- LAPACK auxiliary routine (instrumented to count ops, version 3.0) --
* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
* Courant Institute, Argonne National Lab, and Ri... | dxander/libflame | lapack-test/lapack-timing/EIG/EIGSRC/slasd1.f | FORTRAN | bsd-3-clause | 7,995 |
*> \brief \b CGESC2 solves a system of linear equations using the LU factorization with complete pivoting computed by sgetc2.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CGESC2 + dependencies
*> ... | grisuthedragon/OpenBLAS | lapack-netlib/SRC/cgesc2.f | FORTRAN | bsd-3-clause | 5,517 |
*> \brief \b DLARRF finds a new relatively robust representation such that at least one of the eigenvalues is relatively isolated.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DLARRF + dependenc... | mverleg/1957 | lib/lapack/dlarrf.f | FORTRAN | bsd-3-clause | 15,480 |
*> \brief \b ZLAVHE
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE ZLAVHE( UPLO, TRANS, DIAG, N, NRHS, A, LDA, IPIV, B,
* LDB, INFO )
*
* ... | dxander/libflame | lapack-test/3.4.2/LIN/zlavhe.f | FORTRAN | bsd-3-clause | 17,542 |
C Copyright(C) 2008-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/algebra/ag_uhist.f | FORTRAN | bsd-3-clause | 2,050 |
*+LBTORD
SUBROUTINE LBTORD (LRAD, BRAD, RA, DEC)
C ---------------------------------------
C
C Converts galactic coordinates L,B to RA and Dec.
C
C Given:
C LRAD real*8 galactic longitude (radians)
C BRAD real*8 galactic latitude (radians)
C
C Returned:
C RA ... | CavendishAstrophysics/maplib | lbtord.f | FORTRAN | bsd-3-clause | 1,078 |
! 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/INCOMMU.f | FORTRAN | bsd-3-clause | 6,820 |
subroutine SolDir (y, ac, yold, acold,
& x,
& iBC, BC,
& res,
& iper, ilwork,
& shp, shgl, shpb, shglb)
c
c----------------------------------------... | cwsmith/phasta | phSolver/incompressible/soldir.f | FORTRAN | bsd-3-clause | 3,630 |
*> \brief \b ZGBT02
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE ZGBT02( TRANS, M, N, KL, KU, NRHS, A, LDA, X, LDX, B,
* LDB, RESID )
*
* .... | buffer51/OpenBLAS | lapack-netlib/TESTING/LIN/zgbt02.f | FORTRAN | bsd-3-clause | 6,260 |
! -*- F90 -*-
subroutine CTEQ65evolve(x,Q,pdf)
implicit real*8(a-h,o-z)
include 'parmsetup.inc'
character*16 name(nmxset)
integer nmem(nmxset),ndef(nmxset),mmem
common/NAME/name,nmem,ndef,mmem
real*8 pdf(-6:6)
integer nset
Character Line*80
PARAMETE... | miranov25/AliRoot | LHAPDF/lhapdf5.5.1/src/wrapcteq65.f | FORTRAN | bsd-3-clause | 30,213 |
C> \brief \b CGEQRF VARIANT: left-looking Level 3 BLAS version of the algorithm.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* SUBROUTINE CGEQRF ( M, N, A, LDA, TAU, WORK, LWORK, I... | ryanrhymes/openblas | lib/OpenBLAS-0.2.19/lapack-netlib/SRC/VARIANTS/qr/LL/cgeqrf.f | FORTRAN | bsd-3-clause | 11,933 |
program prog
10 format(i2)
20 format(i3)
write(6, 10) 12
write(6, 20) 345
write(6, 10) 67
end
| hickerson/bbn | fable/fable_sources/fable/test/valid/format_used_twice.f | FORTRAN | mit | 130 |
! fortran_free_source
!
! This module is part of PERFCODE, written by Bradley J Eck.
!
! Purpose: Holds subroutines used in the 2D model
!
! History: April 2010 -- Original coding
! July 2011 -- added PFC_PARAMETERS and WATER_BUDGET
!
MODULE pfc2Dsubs
IMPLICIT NONE
CONTAINS
! This module hol... | bradleyjeck/Perfcode | src/pfc2Dsubs.f95 | FORTRAN | mit | 16,762 |
! This module is a part oF SLEZAFORT library and is distributed under MIT license.
! See the project page for more details: https://github.com/gronki/libslezafort
!
! Copyright (c) 2016 Dominik Gronkiewicz
!
! Permission is hereby granted, free of charge, to any person obtaining a copy
! of this software and associate... | danielpecak/salesman | fortran/interpol.f95 | FORTRAN | mit | 3,002 |
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/incremental3/train7.f | FORTRAN | apache-2.0 | 1,631 |
SUBROUTINE DM_GSPC ( iflno, nword, istart, iret )
C************************************************************************
C* DM_GSPC *
C* *
C* This subroutine gets space to write data in a DM file. *
C* *
C* DM_GSPC ( IFLNO, NWORD, ISTART, IRET ) *
C* *
C* Input parameters: ... | sgdecker/pygempak | dmgspc.f | FORTRAN | apache-2.0 | 2,720 |
subroutine pltspec (line,ncall)
c******************************************************************************
c This subroutine controls the plotting of the synthesized and
c observed data
c******************************************************************************
implicit real*8 (a-h,o-z... | alexji/moog17scat | Pltspec.f | FORTRAN | mit | 12,304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.