repo_name stringlengths 7 81 | path stringlengths 4 224 | copies stringclasses 221
values | size stringlengths 4 7 | content stringlengths 975 1.04M | license stringclasses 15
values |
|---|---|---|---|---|---|
CapeDrew/DITK | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/lapack/double/dlatdf.f | 43 | 8540 | SUBROUTINE DLATDF( IJOB, N, Z, LDZ, RHS, RDSUM, RDSCAL, IPIV,
$ JPIV )
*
* -- LAPACK auxiliary routine (version 3.0) --
* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
* Courant Institute, Argonne National Lab, and Rice University
* June 30, 1999
*
* .. Scalar... | apache-2.0 |
itsimbal/gcc.cet | gcc/testsuite/gfortran.dg/interface_assignment_5.f90 | 155 | 1452 | ! { dg-do compile }
!
! PR 42677: [4.5 Regression] Bogus Error: Ambiguous interfaces '...' in intrinsic assignment operator
!
! Contributed by Harald Anlauf <anlauf@gmx.de>
module mod1
implicit none
type t_m
integer :: i = 0
end type t_m
!---------------------------------------------------------------------... | gpl-2.0 |
CapeDrew/DITK | Modules/ThirdParty/VNL/src/vxl/v3p/netlib/blas/ztrsv.f | 68 | 10551 | SUBROUTINE ZTRSV ( UPLO, TRANS, DIAG, N, A, LDA, X, INCX )
* .. Scalar Arguments ..
INTEGER INCX, LDA, N
CHARACTER*1 DIAG, TRANS, UPLO
* .. Array Arguments ..
COMPLEX*16 A( LDA, * ), X( * )
* ..
*
* Purpose
* =======
*
* ZTRSV solves one of the systems o... | apache-2.0 |
emb-team/loongson-gccgo | libgfortran/generated/_exp_c4.F90 | 35 | 1478 | ! Copyright (C) 2002-2014 Free Software Foundation, Inc.
! Contributed by Paul Brook <paul@nowt.org>
!
!This file is part of the GNU Fortran 95 runtime library (libgfortran).
!
!GNU libgfortran is free software; you can redistribute it and/or
!modify it under the terms of the GNU General Public
!License as publishe... | gpl-2.0 |
PHASTA/phasta | phSolver/compressible/getdiff.f | 1 | 11878 | subroutine getDiff (T, cp, rho, ycl,
& rmu, rlm, rlm2mu, con, shp,
& xmudmi, xl)
c----------------------------------------------------------------------
c
c This routine calculates the fluid material properties.
c
c input:
c T (npro) ... | bsd-3-clause |
thomasantony/CarND-Projects | Exercises/Term2/MPC-Quizzes/global_kinematic_model/src/Eigen-3.3/blas/testing/dblat3.f | 133 | 104262 | *> \brief \b DBLAT3
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* PROGRAM DBLAT3
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> Test program for the DOUBLE PRECISION ... | mit |
emb-team/loongson-gccgo | gcc/testsuite/gfortran.dg/move_alloc_9.f90 | 136 | 1028 | ! { dg-do compile }
!
! Test diagnostic for MOVE_ALLOC:
! FROM=type, TO=class is OK
! FROM=class, TO=type is INVALID
!
module m2
type, abstract :: t2
contains
procedure(intf), deferred, nopass :: f
end type t2
interface
function intf()
import
class(t2), allocatable :: intf
end function ... | gpl-2.0 |
davidinouye/lpmrf | mexcode/eigen/lapack/clarfg.f | 273 | 5344 | *> \brief \b CLARFG
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CLARFG + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clarf... | mit |
PHASTA/phasta | phSolver/compressible/e3ls.f | 2 | 33965 | subroutine e3LS (A1, A2, A3,
& rho, rmu, cp,
& cv, con, T,
& u1, u2, u3,
& rLyi, dxidx, tau,
& ri, ... | bsd-3-clause |
jrper/fluidity | femtools/Rotated_Boundary_Conditions.F90 | 2 | 11774 | ! Copyright (C) 2006 Imperial College London and others.
!
! Please see the AUTHORS file in the main source directory for a full list
! of copyright holders.
!
! Prof. C Pain
! Applied Modelling and Computation Group
! Department of Earth Science and Engineering
! Imperial College London
!
! ... | lgpl-2.1 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/char_result_6.f90 | 188 | 2214 | ! Like char_result_5.f90, but the function arguments are pointers to scalars.
! { dg-do run }
pure function select (selector, iftrue, iffalse)
logical, intent (in) :: selector
integer, intent (in) :: iftrue, iffalse
integer :: select
if (selector) then
select = iftrue
else
select = iffalse
end if
e... | gpl-2.0 |
tectronics/force-distribution-analysis.gromacs-4-5-3 | src/gmxlib/nonbonded/nb_kernel_f77_single/f77skernel203.f | 5 | 18063 | C
C This source code is part of
C
C G R O M A C S
C
C Copyright (c) 1991-2000, University of Groningen, The Netherlands.
C Copyright (c) 2001-2009, The GROMACS Development Team
C
C Gromacs is a library for molecular simulation and trajectory analysis,
C written by Erik Lindahl... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/read_eof_all.f90 | 169 | 1987 | ! { dg-do run }
! PR43265 Followup patch for miscellaneous EOF conditions.
! Eaxamples from Tobius Burnus
use iso_fortran_env
character(len=2) :: str, str2(2)
integer :: a, b, c, ios
str = ''
str2 = ''
open(99,file='test.dat',access='stream',form='unformatted', status='replace')
write(99) ' '
close(99... | gpl-2.0 |
dbarbier/privot | lib/src/BlasLapack/dlabad.f | 10 | 1886 | SUBROUTINE DLABAD( SMALL, LARGE )
*
* -- 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 LARG... | lgpl-3.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/maxval_char_2.f90 | 19 | 1178 | ! { dg-do run }
program main
implicit none
integer, parameter :: n=5, m=3
character(kind=4,len=5), dimension(n) :: a
character(kind=4,len=5), dimension(n,m) :: b
character(kind=4,len=5) :: res
integer, dimension(n,m) :: v
real, dimension(n,m) :: r
integer :: i,j
logical, dimension(n,m) :: mask
chara... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/elemental_subroutine_11.f90 | 19 | 7124 | ! { dg-do run }
!
! Check error of pr65894 are fixed.
! Contributed by Juergen Reuter <juergen.reuter@desy.de>
! Andre Vehreschild <vehre@gcc.gnu.org>
module simple_string
! Minimal iso_varying_string implementation needed.
implicit none
type string_t
private
character(len=1), dimension... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/random_init_3.f90 | 17 | 1956 | ! { dg-do run }
! { dg-options "-fcoarray=single" }
program rantest
implicit none
logical, parameter :: debug = .false.
character(len=20) name
integer fd, i, n
integer, allocatable :: n1(:), n2(:), n3(:)
real x(4), y(4), z(4)
if (debug) then
write(name,'(A,I0)') 'dat', this_image()
o... | gpl-2.0 |
kito-cheng/riscv-gcc | libgfortran/generated/_sqrt_r4.F90 | 3 | 1473 | ! Copyright (C) 2002-2019 Free Software Foundation, Inc.
! Contributed by Paul Brook <paul@nowt.org>
!
!This file is part of the GNU Fortran 95 runtime library (libgfortran).
!
!GNU libgfortran is free software; you can redistribute it and/or
!modify it under the terms of the GNU General Public
!License as publishe... | gpl-2.0 |
bgin/MissileSimulation | External/FFTPACK/sinqmi.f | 1 | 2536 | C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C * *
C * copyright (c) 2011 by UCAR *
C * *
C * University Corpora... | mit |
ars599/mom5 | src/atmos_param/cosp/cosp_io.F90 | 3 | 92481 | #include "cosp_defs.H"
#ifdef COSP_GFDL
!---------------------------------------------------------------------
!------------ FMS version number and tagname for this file -----------
! $Id: cosp_io.F90,v 20.0 2013/12/13 23:15:43 fms Exp $
! $Name: tikal $
! cosp_version = 1.3.2
#endif
! (c) British Crown Copyright ... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_eoshift.f90 | 19 | 3749 | ! Program to test the eoshift intrinsic
program intrinsic_eoshift
integer, dimension(3, 3) :: a
integer, dimension(3, 3, 2) :: b
integer, dimension(3) :: bo, sh
! Scalar shift and scalar bound.
a = reshape ((/1, 2, 3, 4, 5, 6, 7, 8, 9/), (/3, 3/))
a = eoshift (a, 1, 99, 1)
if (any (a .ne. reshape ... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/class_48.f90 | 144 | 3223 | ! { dg-do run }
!
! PR fortran/51972
! Also tests fixes for PR52102
!
! Check whether DT assignment with polymorphic components works.
!
subroutine test1 ()
type t
integer :: x
end type t
type t2
class(t), allocatable :: a
end type t2
type(t2) :: one, two
one = two
if (allocated (one%a)) call ... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/function_optimize_2.f90 | 99 | 1513 | ! { dg-do compile }
! { dg-options "-O -faggressive-function-elimination -fdump-tree-original" }
program main
implicit none
real, dimension(2,2) :: a, b, c, d
real :: x, z
integer :: i
character(60) :: line
real, external :: ext_func
interface
elemental function element(x)
real, intent(in) :: ... | gpl-2.0 |
tectronics/force-distribution-analysis.gromacs-4-5-3 | src/gmxlib/nonbonded/nb_kernel_f77_single/f77skernel103.f | 5 | 17572 | C
C This source code is part of
C
C G R O M A C S
C
C Copyright (c) 1991-2000, University of Groningen, The Netherlands.
C Copyright (c) 2001-2009, The GROMACS Development Team
C
C Gromacs is a library for molecular simulation and trajectory analysis,
C written by Erik Lindahl... | gpl-2.0 |
mlandry1/CarND | Labs/Term2/CarND-MPC-Quizzes/polyfit/src/Eigen-3.3/blas/testing/sblat3.f | 133 | 104172 | *> \brief \b SBLAT3
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* PROGRAM SBLAT3
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> Test program for the REAL ... | mit |
ForestClaw/forestclaw | applications/paper/transport_torus/flag2refine2.f90 | 1 | 6195 | ! ::::::::::::::::::::: flag2refine ::::::::::::::::::::::::::::::::::
!
!> \callgraph
!! \callergraph
!! User routine to control flagging of points for refinement.
!!
!! Default version computes spatial difference dq in each direction and
!! for each component of q and flags any point where this is greater than
!! the... | bsd-2-clause |
tectronics/force-distribution-analysis.gromacs-4-5-3 | src/gmxlib/nonbonded/nb_kernel_power6/pwr6kernel010.F | 3 | 13380 | C
C This source code is part of
C
C G R O M A C S
C
C Copyright (c) 1991-2000, University of Groningen, The Netherlands.
C Copyright (c) 2001-2009, The GROMACS Development Team
C
C Gromacs is a library for molecular simulation and trajectory analysis,
C written by Erik Lindahl... | gpl-2.0 |
tectronics/force-distribution-analysis.gromacs-4-5-3 | src/gmxlib/nonbonded/nb_kernel_f77_single/f77skernel301.f | 5 | 21890 | C
C This source code is part of
C
C G R O M A C S
C
C Copyright (c) 1991-2000, University of Groningen, The Netherlands.
C Copyright (c) 2001-2009, The GROMACS Development Team
C
C Gromacs is a library for molecular simulation and trajectory analysis,
C written by Erik Lindahl... | gpl-2.0 |
rhristov/gcc-modified | libgfortran/generated/_log10_r16.F90 | 47 | 1484 | ! Copyright (C) 2002-2015 Free Software Foundation, Inc.
! Contributed by Paul Brook <paul@nowt.org>
!
!This file is part of the GNU Fortran 95 runtime library (libgfortran).
!
!GNU libgfortran is free software; you can redistribute it and/or
!modify it under the terms of the GNU General Public
!License as publishe... | gpl-2.0 |
rhristov/gcc-modified | libgomp/testsuite/libgomp.fortran/omp_workshare2.f | 221 | 1523 | C******************************************************************************
C FILE: omp_workshare2.f
C DESCRIPTION:
C OpenMP Example - Sections Work-sharing - Fortran Version
C In this example, the OpenMP SECTION directive is used to assign
C different array operations to threads that execute a SECTION. Each
... | gpl-2.0 |
rhristov/gcc-modified | libgfortran/generated/_dim_r10.F90 | 47 | 1458 | ! Copyright (C) 2002-2015 Free Software Foundation, Inc.
! Contributed by Paul Brook <paul@nowt.org>
!
!This file is part of the GNU Fortran 95 runtime library (libgfortran).
!
!GNU libgfortran is free software; you can redistribute it and/or
!modify it under the terms of the GNU General Public
!License as publishe... | gpl-2.0 |
ForestClaw/forestclaw | src/patches/clawpatch/fort_4.6/fclaw2d_clawpatch46_copy.f | 1 | 4013 | c # ----------------------------------------------------------
c> @file
c> Exchange routines - (i,j,mq) ordering
c # ----------------------------------------------------------
c # exchange_face_ghost
c # exchange_corner_ghost
c # exchange_phys_corner_ghost
c # -------------------------... | bsd-2-clause |
fthoele/espresso-5.4.0 | CPV/src/pres_ai_mod.f90 | 21 | 2696 | !
! Copyright (C) 2002 FPMD group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!=----------------------------------------------------------------------------=!
... | gpl-2.0 |
fthoele/espresso-5.4.0 | LAXlib/transto.f90 | 1 | 7391 | !
! Copyright (C) 2001 FPMD group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
! OPTIMIZED DRIVER FOR MATRIX TRASPOSITION
!
! written by Carlo Cavazzon... | gpl-2.0 |
ForestClaw/forestclaw | applications/paper/transport_torus/qad_new.f90 | 2 | 11968 | !! For each coarse-fine interface, a Riemann problem between an inner
!! ghost cell value on the fine grid and cell value in the adjacent coarse
!! cell must be solved and added to corresponding location in
!! **node(ffluxptr, mptr)** for conservative fix later
!!
!! ----------------------------------------------------... | bsd-2-clause |
ars599/mom5 | src/mom5/ocean_param/vertical/ocean_vert_tidal_test.F90 | 3 | 106665 | module ocean_vert_tidal_test_mod
!
!<CONTACT EMAIL="GFDL.Climate.Model.Info@noaa.gov"> S. M. Griffies
!</CONTACT>
!
!<REVIEWER EMAIL="hsimmons@iarc.uaf.edu"> Harper Simmons
!</REVIEWER>
!
!<REVIEWER EMAIL="GFDL.Climate.Model.Info@noaa.gov"> Hyun-Chul Lee
!</REVIEWER>
!
!<OVERVIEW>
! This module computes a vertical d... | gpl-2.0 |
rhristov/gcc-modified | libgomp/testsuite/libgomp.fortran/target6.f90 | 102 | 1232 | ! { dg-do run }
module target6
contains
subroutine foo (p, v, w, n)
double precision, pointer :: p(:), v(:), w(:)
double precision :: q(n)
integer :: i, n
!$omp target data if (n > 256) map (to: v(1:n), w(:n)) map (from: p(1:n), q)
!$omp target if (n > 256)
!$omp parallel do simd
do i =... | gpl-2.0 |
pschella/scipy | scipy/special/cdflib/ipmpar.f | 112 | 12380 | INTEGER FUNCTION ipmpar(i)
C-----------------------------------------------------------------------
C
C IPMPAR PROVIDES THE INTEGER MACHINE CONSTANTS FOR THE COMPUTER
C THAT IS USED. IT IS ASSUMED THAT THE ARGUMENT I IS AN INTEGER
C HAVING ONE OF THE VALUES 1-10. IPMPAR(I) HAS THE VALUE ...
C
C INTEG... | bsd-3-clause |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/pointer_array_8.f90 | 18 | 2086 | ! { dg-do run }
!
! Make sure that the fix for pr34640 works with class pointers.
!
type :: mytype
real :: r
integer :: i
end type
type :: thytype
real :: r
integer :: i
type(mytype) :: der
end type
type(thytype), dimension(0:2), target :: tgt
class(*), dimension(:), pointer :: cptr
... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/assumed_charlen_function_1.f90 | 154 | 1971 | ! { dg-do compile }
! { dg-options "-std=legacy" }
! Tests the patch for PRs 25084, 20852, 25085 and 25086, all of
! which involve assumed character length functions.
! Compiled from original PR testcases, which were all contributed
! by Joost VandeVondele <jv244@cam.ac.uk>
!
! PR25084 - the error is not here b... | gpl-2.0 |
nvarini/espresso_adios | PHonon/PH/add_zstar_ue.f90 | 5 | 2573 | !
! Copyright (C) 2001-2012 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-------------------------------------------------------------------... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/use_only_3.f90 | 50 | 1300 | ! { dg-do compile }
! This tests the patch for PR34975, in which 'n', 'ipol', and 'i' would be
! determined to have 'no IMPLICIT type'. It turned out to be fiendishly
! difficult to write a testcase for this PR because even the smallest changes
! would make the bug disappear. This is the testcase provided in the PR, ... | gpl-2.0 |
fthoele/espresso-5.4.0 | CPV/src/smallbox_lib.f90 | 10 | 6836 | !
! Copyright (C) 2002-2011 Quantum ESPRESSO groups
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!------------------------------------------------------------------... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/gomp/pr35786-1.f90 | 155 | 2006 | ! PR fortran/35786
! { dg-do compile }
! { dg-options "-fopenmp" }
module pr35768
real, parameter :: one = 1.0
contains
subroutine fn1
!$omp parallel firstprivate (one) ! { dg-error "is not a variable" }
!$omp end parallel
end subroutine fn1
subroutine fn2 (doit)
external doit
!$omp parallel fi... | gpl-2.0 |
nvarini/espresso_adios | TDDFPT/src/lr_test_restart.f90 | 5 | 5165 | !
! Copyright (C) 2001-2015 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-------------------------------------------------------------------... | gpl-2.0 |
pschella/scipy | scipy/interpolate/fitpack/fpinst.f | 148 | 2019 | subroutine fpinst(iopt,t,n,c,k,x,l,tt,nn,cc,nest)
c given the b-spline representation (knots t(j),j=1,2,...,n, b-spline
c coefficients c(j),j=1,2,...,n-k-1) of a spline of degree k, fpinst
c calculates the b-spline representation (knots tt(j),j=1,2,...,nn,
c b-spline coefficients cc(j),j=1,2,...,nn-k-1) of th... | bsd-3-clause |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/maxval_parameter_1.f90 | 19 | 2270 | ! { dg-do run }
! Test for run-time simplification of maxval
program main
implicit none
integer, dimension(2,3), parameter :: i = &
& reshape([-1,2,-3,5,-7,11], shape(i))
integer, dimension(3), parameter :: im1 = maxval(i,dim=1)
integer, parameter :: im2 = maxval(i,mask=i<0)
integer, dimension(2), par... | gpl-2.0 |
pschella/scipy | scipy/linalg/src/id_dist/src/idzr_aid.f | 128 | 4815 | c this file contains the following user-callable routines:
c
c
c routine idzr_aid computes the ID, to a specified rank,
c of an arbitrary matrix. This routine is randomized.
c
c routine idzr_aidi initializes routine idzr_aid.
c
c
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc... | bsd-3-clause |
ars599/mom5 | src/mom5/ocean_diag/ocean_diagnostics.F90 | 6 | 6500 | module ocean_diagnostics_mod
!
!<CONTACT EMAIL="GFDL.Climate.Model.Info@noaa.gov"> S.M. Griffies
!</CONTACT>
!
!<OVERVIEW>
! Routine that calls the various numerical diagnostics.
!</OVERVIEW>
!
!<DESCRIPTION>
! Routine that calls the various numerical diagnostics.
! </DESCRIPTION>
!
use diag_manager_mod, only:... | gpl-2.0 |
nvarini/espresso_adios | PW/tools/kpoints.f90 | 12 | 7824 | !
! Copyright (C) 2010 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!
!----------------------------------------------------------------------... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/host_assoc_call_4.f90 | 155 | 1708 | ! { dg-do compile }
!
! PR fortran/37445, in which the first version of the fix regressed on the
! calls to GetBasicElementData; picking up the local GetBasicElementData instead.
!
! Contributed by Norman S Clerman < clerman@fuse.net>
! and reduced by Tobias Burnus <burnus@gcc.gnu.org>
!
MODULE ErrElmnt
IMPLICIT NON... | gpl-2.0 |
ForestClaw/forestclaw | applications/elliptic/heat/fortran/heat_output.f90 | 1 | 3044 | subroutine heat_fort_header_ascii(matname1,matname2, time,meqn,maux,ngrids)
implicit none
integer meqn,ngrids, maux
character*11 matname1
character*11 matname2
double precision time
integer matunit1, matunit2
integer mfields
matunit1 = 10
matunit2 = 15
open(unit=matunit2,file... | bsd-2-clause |
bgin/MissileSimulation | External/SLICOT/dhgeqz.f | 1 | 44066 | SUBROUTINE DHGEQZ( JOB, COMPQ, COMPZ, N, ILO, IHI, H, LDH, T, LDT,
$ ALPHAR, ALPHAI, BETA, Q, LDQ, Z, LDZ, WORK,
$ LWORK, INFO )
*
* -- LAPACK routine (version 3.2) --
* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
* November 2006
*
... | mit |
fthoele/espresso-5.4.0 | S3DE/iotk/src/iotk_attr+INTEGER3_0.f90 | 5 | 23071 | ! Input/Output Tool Kit (IOTK)
! Copyright (C) 2004-2006 Giovanni Bussi
!
! This library is free software; you can redistribute it and/or
! modify it under the terms of the GNU Lesser General Public
! License as published by the Free Software Foundation; either
! version 2.1 of the License, or (at your option) any late... | gpl-2.0 |
nvarini/espresso_adios | PHonon/D3/allocate_pert_d3.f90 | 5 | 1031 | !
! Copyright (C) 2001-2009 PWSCF group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!
!-----------------------------------------------------------------------
subr... | gpl-2.0 |
bgin/MissileSimulation | External/CUBPACK/rule_t3.f90 | 3 | 17600 | ! This file is F-compatible, except for upper/lower case conventions.
!--------------------------------------------------------------------
Module CubatureRule_T3
USE Precision_Model, ONLY: stnd
Implicit NONE
PRIVATE
PUBLIC :: Rule_T3a
PRIVATE :: OrbT3_Sum
CONTAINS
SUBROUTINE Rule_T3a(VER,VOLUME,NUMFUN,Integra... | mit |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/elemental_function_3.f90 | 16 | 1560 | ! { dg-do run }
!
! Test the fix for PR84109 in which the call to the elemental function
! 'adjustl' was being added before the scalarization loop in the assignment.
! Since the result temporary was being declared in the loop body, this
! drove the gimplifier crazy. It is sufficient to compile this testcase
! since it ... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/g77/19990826-1.f | 210 | 8631 | c { dg-do compile }
* Date: Tue, 24 Aug 1999 12:25:41 +1200 (NZST)
* From: Jonathan Ravens <ravens@whio.gns.cri.nz>
* To: gcc-bugs@gcc.gnu.org
* Subject: g77 bug report
* X-UIDL: a0bf5ecc21487cde48d9104983ab04d6
! This fortran source will not compile - if the penultimate elseif block is 0
! included then the message a... | gpl-2.0 |
surhudm/scipy | scipy/integrate/quadpack/dqawoe.f | 115 | 21404 | subroutine dqawoe (f,a,b,omega,integr,epsabs,epsrel,limit,icall,
* maxp1,result,abserr,neval,ier,last,alist,blist,rlist,elist,iord,
* nnlog,momcom,chebmo)
c***begin prologue dqawoe
c***date written 800101 (yymmdd)
c***revision date 830518 (yymmdd)
c***category no. h2a2a1
c***keywords automa... | bsd-3-clause |
bgin/MissileSimulation | External/QUADPACK/dqawoe.f | 115 | 21404 | subroutine dqawoe (f,a,b,omega,integr,epsabs,epsrel,limit,icall,
* maxp1,result,abserr,neval,ier,last,alist,blist,rlist,elist,iord,
* nnlog,momcom,chebmo)
c***begin prologue dqawoe
c***date written 800101 (yymmdd)
c***revision date 830518 (yymmdd)
c***category no. h2a2a1
c***keywords automa... | mit |
ForestClaw/forestclaw | applications/metric/2d/circles/mapc2m.f | 1 | 1035 | subroutine mapc2m(xc,yc,xp,yp,zp)
implicit none
double precision xc,yc,xp,yp,zp
double precision ll(2), ur(2)
logical isperiodic
c # This constructs mapping in [-1,-1]x[1,1]. To get
c # something in a box of a different size and location
c # translate below.
isperio... | bsd-2-clause |
PUReIBM/PS3D | SRC/FLO/collision_mod.F90 | 1 | 62708 | ! PUReIBM-PS3D is a three-dimensional psudeo-spectral particle-resolved
! direct numerical simulation solver for detailed analysis of homogeneous
! fixed and freely evolving fluid-particle suspensions. PUReRIBM-PS3D
! is a continuum Navier-Stokes solver based on Cartesian grid that utilizes
! Immeresed B... | gpl-3.0 |
kito-cheng/riscv-gcc | libgomp/testsuite/libgomp.fortran/target6.f90 | 7 | 1216 | ! { dg-do run }
module target6
contains
subroutine foo (p, v, w, n)
double precision, pointer :: p(:), v(:), w(:)
double precision :: q(n)
integer :: i, n
!$omp target data if (n > 256) map (to: v(1:n), w(:n)) map (from: p(1:n), q)
!$omp target if (n > 256)
!$omp parallel do simd
do i =... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/namelist_23.f90 | 174 | 1731 | !{ dg-do run { target fd_truncate } }
! PR26136 Filling logical variables from namelist read when object list is not
! complete. Test case derived from PR.
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program read_logical
implicit none
logical, dimension(4) :: truely
integer, dimension(4) :: truely... | gpl-2.0 |
ars599/mom5 | src/land_lad/vegetation/vegetation.F90 | 3 | 23765 | ! ============================================================================
! vegetation-related processes
! ============================================================================
module vegetation_mod
! <CONTACT EMAIL="GFDL.Climate.Model.Info@noaa.gov">
! Christopher Milly
! </CONTACT>
! <REVIEWER EMAIL=... | gpl-2.0 |
ForestClaw/forestclaw | applications/clawpack/transport/2d/all/velocity_wind.f | 1 | 1136 | double precision function psi(xd,yd,zd,t)
implicit none
double precision xd, yd, zd, t
double precision kappa,tfinal
common /windparms/ kappa,tfinal
double precision pi, pi2
common /compi/ pi, pi2
double precision l, th, lp
c call get_wind_parms(kappa,tfinal)
... | bsd-2-clause |
ForestClaw/forestclaw | applications/paper/sphere/user_4.6/qinit.f | 1 | 1431 | 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-... | bsd-2-clause |
pschella/scipy | scipy/interpolate/fitpack/fptrnp.f | 148 | 2961 | subroutine fptrnp(m,mm,idim,n,nr,sp,p,b,z,a,q,right)
c subroutine fptrnp reduces the (m+n-7) x (n-4) matrix a to upper
c triangular form and applies the same givens transformations to
c the (m) x (mm) x (idim) matrix z to obtain the (n-4) x (mm) x
c (idim) matrix q
c ..
c ..scalar arguments..
real*8 p... | bsd-3-clause |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/intrinsic_optional_char_arg_1.f90 | 126 | 1064 | ! { dg-do compile }
! { dg-options "-fdump-tree-original" }
! PR fortran/36403
! Check that string lengths of optional arguments are added to the library-call
! even if those arguments are missing.
PROGRAM main
IMPLICIT NONE
CHARACTER(len=1) :: vect(4)
CHARACTER(len=1) :: matrix(2, 2)
matrix(1, 1) = ""
ma... | gpl-2.0 |
surhudm/scipy | scipy/optimize/lbfgsb/lbfgsb.f | 53 | 128595 | c=========== L-BFGS-B (version 3.0. April 25, 2011 ===================
c
c This is a modified version of L-BFGS-B. Minor changes in the updated
c code appear preceded by a line comment as follows
c
c c-jlm-jn
c
c Major changes are described in the accompanying paper:
c
c Jorge Nocedal a... | bsd-3-clause |
rhristov/gcc-modified | libgomp/testsuite/libgomp.fortran/lib3.f | 112 | 2487 | C { dg-do run }
INCLUDE "omp_lib.h"
DOUBLE PRECISION :: D, E
LOGICAL :: L
INTEGER (KIND = OMP_LOCK_KIND) :: LCK
INTEGER (KIND = OMP_NEST_LOCK_KIND) :: NLCK
D = OMP_GET_WTIME ()
CALL OMP_INIT_LOCK (LCK)
CALL OMP_SET_LOCK (LCK)
IF (OMP_TEST_LOCK (LCK)) CALL ABORT
... | gpl-2.0 |
ramirezfranciscof/lio | dat/ambermod/qm2_extern_lio_module.dif.f90 | 3 | 4918 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!
! MODULES
!
! Add line 4 starting with "use memory_module"
!
!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!
subroutine get_lio_forces( do_grad, nstep, ntpr_default, id, nqmatoms, qmcoords,&
n... | gpl-2.0 |
rhristov/gcc-modified | libgomp/testsuite/libgomp.fortran/vla1.f90 | 202 | 7391 | ! { dg-do run }
call test
contains
subroutine check (x, y, l)
integer :: x, y
logical :: l
l = l .or. x .ne. y
end subroutine check
subroutine foo (c, d, e, f, g, h, i, j, k, n)
use omp_lib
integer :: n
character (len = *) :: c
character (len = n) :: d
integer, dimension (2, 3:... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/elemental_subroutine_10.f90 | 72 | 2245 | ! { dg-do run }
!
! PR fortran/60066
!
! Contributed by F Martinez Fadrique <fmartinez@gmv.com>
!
! Fixed by the patch for PR59906 but adds another, different test.
!
module m_assertion_character
implicit none
type :: t_assertion_character
character(len=8) :: name
contains
procedure :: assertion_characte... | gpl-2.0 |
ForestClaw/forestclaw | applications/clawpack/shallow/2d/radialdam_cuda/user_5.0/setaux.f90 | 2 | 1493 | SUBROUTINE user5_setaux_manifold(mbc,mx,my, &
xlower,ylower,dx,dy,maux,aux, &
xnormals,xtangents,ynormals,ytangents, &
surfnormals,area)
IMPLICIT NONE
INTEGER mx,my,mbc,maux
DOUBLE PRECISION xlower,ylower,dx,dy
DOUBLE PRECISION aux(maux,1-mbc:mx+mbc,1-mbc:my+mbc)
!! Still hoping to b... | bsd-2-clause |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/pr32738.f90 | 155 | 1129 | ! { dg-do compile }
! PR fortran/32738
!
! A regression that mysteriously appeared and disappeared again.
! Added to the testsuite "just in case".
!
! Contributed by Michael Richmond <michael DOT a DOT richmond AT nasa DT gov>
!
module cluster_definition
implicit none
integer, parameter, public:: cluster_size = 1... | gpl-2.0 |
nvarini/espresso_adios | CPV/src/berryion.f90 | 21 | 3697 | !
! Copyright (C) 2002-2005 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
subroutine berryion( tau0,fion, tfor,ipol,evalue,enbi)
! this subr... | gpl-2.0 |
ramirezfranciscof/lio | lioamber/liosubs_math/funct.f90 | 1 | 3918 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%!
!
! This small program is taken from old version of gdfmol
! it is the implementation of the Obara-Saika method for
! the evaluation of F(m,T), using a 2 branch calculation
! DEBUGGING VERSION, this is the attempt to generalize
! and ... | gpl-2.0 |
kito-cheng/riscv-gcc | libgomp/testsuite/libgomp.oacc-fortran/asyncwait-1.f90 | 15 | 4370 | ! { dg-do run }
program asyncwait
integer, parameter :: N = 64
real, allocatable :: a(:), b(:), c(:), d(:), e(:)
integer i
allocate (a(N))
allocate (b(N))
allocate (c(N))
allocate (d(N))
allocate (e(N))
a(:) = 3.0
b(:) = 0.0
!$acc data copy (a(1:N)) copy (b(1:N))
!$acc parallel async
!$ac... | gpl-2.0 |
nvarini/espresso_adios | flib/erf.f90 | 22 | 4495 | !
! Copyright (C) 2002-2009 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-------------------------------------------------------------------... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/g77/980310-2.f | 209 | 2053 | c { dg-do compile }
C unable to confirm this bug on egcs 1.0.1 for i586-pc-sco3.2v5.0.4 robertl
C
C Date: Sat, 23 Aug 1997 00:47:53 -0400 (EDT)
C From: David Bristow <dbristow@lynx.dac.neu.edu>
C To: egcs-bugs@cygnus.com
C Subject: g77 crashes compiling Dungeon
C Message-ID: <Pine.OSF.3.91.970823003521.11281A-100000@ly... | gpl-2.0 |
nvarini/espresso_adios | Modules/control_flags.f90 | 1 | 14440 | !
! Copyright (C) 2002-2011 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!=------------------------------------------------------------------... | gpl-2.0 |
nvarini/espresso_adios | PWCOND/src/free_mem.f90 | 14 | 1382 | !
! Copyright (C) 2003 A. Smogunov
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
subroutine free_mem
!
! Deallocates memory
!
use cond
implicit none
!
! From all... | gpl-2.0 |
rhristov/gcc-modified | libgomp/testsuite/libgomp.oacc-fortran/reduction-3.f90 | 44 | 3225 | ! { dg-do run }
! double precision reductions
program reduction_3
implicit none
integer, parameter :: n = 10, vl = 2
integer :: i
double precision, parameter :: e = .001
double precision :: vresult, result
logical :: lresult, lvresult
double precision, dimension (n) ... | gpl-2.0 |
surhudm/scipy | scipy/special/amos/dgamln.f | 178 | 8597 | DOUBLE PRECISION FUNCTION DGAMLN(Z,IERR)
C***BEGIN PROLOGUE DGAMLN
C***DATE WRITTEN 830501 (YYMMDD)
C***REVISION DATE 830501 (YYMMDD)
C***CATEGORY NO. B5F
C***KEYWORDS GAMMA FUNCTION,LOGARITHM OF GAMMA FUNCTION
C***AUTHOR AMOS, DONALD E., SANDIA NATIONAL LABORATORIES
C***PURPOSE TO COMPUTE THE LOGARIT... | bsd-3-clause |
bgin/MissileSimulation | External/FFTPACK/cfft1i.f | 1 | 2472 | C * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
C * *
C * copyright (c) 2011 by UCAR *
C * *
C * University Corpora... | mit |
rhristov/gcc-modified | gcc/testsuite/gfortran.fortran-torture/execute/forall_1.f90 | 191 | 1679 | ! Program to test FORALL construct
program forall_1
call actual_variable ()
call negative_stride ()
call forall_index ()
contains
subroutine actual_variable ()
integer:: x = -1
integer a(3,4)
j = 100
! Actual variable 'x' and 'j' used as FORALL index
forall (x = 1:3, j... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/intrinsic_modulo_1.f90 | 190 | 1101 | ! { dg-do run }
! testcase from PR 19032 adapted for testsuite
! Our implementation of modulo was wrong for P = 1 and P = -1,
! both in the real and the integer case
program main
integer, parameter :: n=16
real, dimension(n) :: ar, br, modulo_result, floor_result
integer, dimension(n) :: ai, bi , imodulo_result, ... | gpl-2.0 |
kito-cheng/riscv-gcc | libgfortran/generated/_abs_i16.F90 | 3 | 1461 | ! Copyright (C) 2002-2019 Free Software Foundation, Inc.
! Contributed by Paul Brook <paul@nowt.org>
!
!This file is part of the GNU Fortran 95 runtime library (libgfortran).
!
!GNU libgfortran is free software; you can redistribute it and/or
!modify it under the terms of the GNU General Public
!License as publishe... | gpl-2.0 |
fthoele/espresso-5.4.0 | Modules/read_upf_v2.f90 | 16 | 29113 | !
! Copyright (C) 2008-2011 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!=------------------------------------------------------------------... | gpl-2.0 |
nvarini/espresso_adios | TDDFPT/src/lr_sm1_psi.f90 | 3 | 32006 | !
! Copyright (C) 2001-2015 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-------------------------------------------------------------------... | gpl-2.0 |
ars599/mom5 | src/mom5/ocean_bgc/ocean_bgc_restore.F90 | 10 | 197447 | #include <fms_platform.h>
! ----------------------------------------------------------------
! GNU General Public License
! This file is a part of MOM.
! ... | gpl-2.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/widechar_intrinsics_4.f90 | 19 | 3865 | ! { dg-do run }
! { dg-options "-fbackslash" }
character(kind=1,len=20) :: s1
character(kind=4,len=20) :: s4
call test_adjust1 (" foo bar ", 4_" foo bar ")
s1 = " foo bar " ; s4 = 4_" foo bar "
call test_adjust2 (s1, s4)
call test_adjust1 (" foo bar \xFF", 4_" foo bar \xFF")
s1 = " foo bar \xFF"... | gpl-2.0 |
nvarini/espresso_adios | TDDFPT/src/lr_apply_liouvillian_eels.f90 | 2 | 17956 | !
! Copyright (C) 2001-2015 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-------------------------------------------------------------------... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.fortran-torture/execute/der_type.f90 | 191 | 1101 | ! Program to test derived types
program der_type
implicit none
type t1
integer, dimension (4, 5) :: a
integer :: s
end type
type my_type
character(20) :: c
type (t1), dimension (4, 3) :: ca
type (t1) :: r
end type
type init_type
integer :: i = 13
integer ... | gpl-2.0 |
surhudm/scipy | scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dstats.f | 170 | 1166 | c
c\SCCS Information: @(#)
c FILE: stats.F SID: 2.1 DATE OF SID: 4/19/96 RELEASE: 2
c %---------------------------------------------%
c | Initialize statistic and timing information |
c | for symmetric Arnoldi code. |
c %---------------------------------------------%
subro... | bsd-3-clause |
PUReIBM/PS3D | SRC/SHARED_MODULES/string_funcs.F90 | 1 | 9127 | !-------
! Independent module
!-------
! Some string manipulation functions
!-------
! Code: Steinli
! Author: Chidambaram Narayanan
! Nuclear Engineering Laboratory
! ETH Zurich
!-------
MODULE string_funcs
USE precision
Implicit none
Private
Public:: newfilename, upper_to_lower, lower_to_up... | gpl-3.0 |
kito-cheng/riscv-gcc | gcc/testsuite/gfortran.dg/assumed_rank_bounds_1.f90 | 19 | 4914 | ! { dg-do run }
!
! Test the behavior of lbound, ubound of shape with assumed rank arguments
! in an array context (without DIM argument).
!
program test
integer :: a(2:4,-2:5)
integer, allocatable :: b(:,:)
integer, pointer :: c(:,:)
character(52) :: buffer
call foo(a)
allocate(... | gpl-2.0 |
rhristov/gcc-modified | gcc/testsuite/gfortran.dg/g77/short.f | 166 | 1328 | c { dg-do run }
c { dg-options "-std=legacy" }
c
program short
parameter ( N=2 )
common /chb/ pi,sig(0:N)
common /parm/ h(2,2)
c initialize some variables
h(2,2) = 1117
h(2,1) = 1178
h(1,2) = 1568
h(1,1) = 1621
sig(0) = -1.
sig(1) = 0.
sig(2... | gpl-2.0 |
nvarini/espresso_adios | atomic/src/elsdps_paw.f90 | 15 | 3050 | !
! Copyright (C) 2007 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!
!---------------------------------------------------------------
subrou... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.