commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
01ec5b54973d1b8f3d60df61fe126d73f86bcf73
Create 'Fortran.f95'.
toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava
F/Fortran.f95
F/Fortran.f95
program Baklava do i = 0, 9, 1 print *, repeat (" ", (10 - i)), repeat ("*", (i * 2 + 1)) end do do i = 10, 0, -1 print *, repeat (" ", (10 - i)), repeat ("*", (i * 2 + 1)) end do end program Baklava
mit
FORTRAN
24d683248acebd91e24b4a045f2efbe8795a17e0
Update orginal code
clementval/claw-compiler,clementval/claw-compiler
test/loops/ifextract1/original_code.f90
test/loops/ifextract1/original_code.f90
! Simple program to test the loop-fusion directive program ifextract1 integer :: i logical :: test test = .TRUE. !$claw if-extract DO i = 1, 10 IF (test) THEN PRINT *, 'First loop body:', i END IF END DO end program ifextract1
! Simple program to test the loop-fusion directive program ifextract1 integer :: i logical :: test test = .TRUE. !$claw if-extract DO i = 1, 10 IF (test) THEN PRINT *, 'First loop body:', i END IF END DO END
bsd-2-clause
FORTRAN
599083bbd556800fd3c4bc58cef8a4b37c9a2c02
Remove the optional data/over clauses
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction2/mo_column.f90
test/claw/abstraction2/mo_column.f90
MODULE mo_column IMPLICIT NONE CONTAINS ! Compute only one column SUBROUTINE compute_column(nz, q, t) IMPLICIT NONE INTEGER, INTENT(IN) :: nz ! Size of the array field REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only REAL, INTENT(INOUT) :: q(:) ! Field declared as one colum...
MODULE mo_column IMPLICIT NONE CONTAINS ! Compute only one column SUBROUTINE compute_column(nz, q, t) IMPLICIT NONE INTEGER, INTENT(IN) :: nz ! Size of the array field REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only REAL, INTENT(INOUT) :: q(:) ! Field declared as one colum...
bsd-2-clause
FORTRAN
eb21f402e1d6f1b44e64553a5798f3ef32daf5bd
Change maxtime
cphyc/n-body,cphyc/n-body
constants.f90
constants.f90
module constants use mpi implicit none private integer, parameter :: xp = selected_real_kind(8) integer, parameter :: MPI_REAL_XP = MPI_DOUBLE_PRECISION real(xp), parameter :: pi = 4.0_xp*atan(1.0_xp) real(xp), parameter :: G = 1._xp integer, parameter :: npoints = 2**10 real(xp), pa...
module constants use mpi implicit none private integer, parameter :: xp = selected_real_kind(8) integer, parameter :: MPI_REAL_XP = MPI_DOUBLE_PRECISION real(xp), parameter :: pi = 4.0_xp*atan(1.0_xp) real(xp), parameter :: G = 1._xp integer, parameter :: npoints = 2**10 real(xp), pa...
mit
FORTRAN
6c8462c07e2785897daa497440763d75cdcab409
Print usage if no arguments supplied
anowacki/f90rad3
src/rad3dump.f90
src/rad3dump.f90
program rad3dump use f90rad3 implicit none type(rad3trace) :: tr character(len=250) :: file integer :: start_samp real(8) :: lin_gain, exp_gain logical :: remove_mean = .false., & gain = .false. call get_options call rad3_load(file, tr) ! Filters if (remove_mean) call r...
program rad3dump use f90rad3 implicit none type(rad3trace) :: tr character(len=250) :: file integer :: start_samp real(8) :: lin_gain, exp_gain logical :: remove_mean = .false., & gain = .false. call get_options call rad3_load(file, tr) ! Filters if (remove_mean) call r...
mit
FORTRAN
8e8499f67e9c0ab334af02ffb1205f0aace5e3ce
add implicit none in brillouin interface
tflovorn/scsbz,tflovorn/scsbz
src/brillouin.f90
src/brillouin.f90
module brillouin use double use environment contains function BrilSum(env, sumFunc) ! uses Kahan summation algorithm to improve accuracy implicit none type(Environ), intent(in) :: env interface function sumFunc(env, k) use double us...
module brillouin use double use environment contains function BrilSum(env, sumFunc) ! uses Kahan summation algorithm to improve accuracy implicit none type(Environ), intent(in) :: env interface function sumFunc(env, k) use double us...
mit
FORTRAN
29a5b12f6c8e619ca8aed2387f3c5ca5429f1c54
add tables module
bolverk/white_dwarf_nova,bolverk/white_dwarf_nova,bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova
tables_module.f90
tables_module.f90
module tables real(8),allocatable,save :: xtab(:),ytab(:) & ,etab(:,:),ptab(:,:),efer(:,:) real(8),save :: dxtab,dytab,diuk=1.d-9 real(8),save :: rho0,tmp0,enr0,prs0,ent0 & ,rho,tmp,enr,prs,entropy,xfermi & ,anum,znum,dedrho,dedtmp,dpdrho,dpdtmp ...
mit
FORTRAN
b24b45510d859b159e2b750698e8c238362a8733
Add module for interpolating between datapoints
mherman09/Hdef,mherman09/Hdef,mherman09/Hdef
src/interpolation_module.f90
src/interpolation_module.f90
module interpolation contains !--------------------------------------------------------------------------------------------------! subroutine spline(x,y,n,yp1,ypn,y2) !---- ! (From Press et al., Numerical Recipes) ! ! Given arrays x(1:n) and y(1:n) containing a tabulated function, i.e., yi = f(xi), ! with x1 < x2 < ...
mit
FORTRAN
ae988eaa823c044fcb007dbb557e18c971c2b45d
Fix dimension definition
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction1/original_code.f90
test/claw/abstraction1/original_code.f90
PROGRAM test_abstraction1 REAL, DIMENSION(0:60) :: q, t q(0) = 1.0 CALL compute_column(q, t) PRINT*,SUM(q) PRINT*,SUM(t) END PROGRAM test_abstraction1 SUBROUTINE compute_column(q, t) IMPLICIT NONE REAL, DIMENSION(0:60), INTENT(INOUT) :: q, t REAL :: c INTEGER :: k INTEGER :: kend = 60 ! Define a...
PROGRAM test_abstraction1 REAL, DIMENSION(0:60) :: q, t q(0) = 1.0 CALL compute_column(q, t) PRINT*,SUM(q) PRINT*,SUM(t) END PROGRAM test_abstraction1 SUBROUTINE compute_column(q, t) IMPLICIT NONE REAL, DIMENSION(0:60), INTENT(INOUT) :: q, t REAL :: c INTEGER :: k INTEGER :: kend = 60 ! Define a...
bsd-2-clause
FORTRAN
50010104236acca0dda38237a8b266f279176cbb
Create bees.f
tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees,tommorris/bees
bees.f
bees.f
: bees begin 1 1 = while ." bees " repeat ; bees
mit
FORTRAN
4a151ae6e70456e72205f5f42092ebc9e2d9393e
fix api module passing
scienceopen/glowaurora,scienceopen/glowaurora
fortrancode/egrid.f
fortrancode/egrid.f
! Subroutine EGRID sets up electron energy grid ! ! Stan Solomon, 1/92 ! ! This software is part of the GLOW model. Use is governed by the Open Source ! Academic Research License Agreement contained in the file glowlicense.txt. ! For more information see the file glow.txt. ! SUBROUTINE EGRID (ENER, DEL) us...
agpl-3.0
FORTRAN
cc74c0a4841eeba2cc4bf70454cf2260eda07ef8
Update reference for compile-guard1 test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/directive/compile-guard1/reference.f90
test/claw/directive/compile-guard1/reference.f90
PROGRAM compile_guard_test CALL dummy_subroutine ( ) END PROGRAM compile_guard_test SUBROUTINE dummy_subroutine ( ) INTEGER :: i DO i = 1 , 10 , 1 PRINT * ,"First loop body:" , i PRINT * ,"Second loop body:" , i END DO END SUBROUTINE dummy_subroutine
PROGRAM compile_guard_test CALL dummy_subroutine ( ) END PROGRAM compile_guard_test SUBROUTINE dummy_subroutine ( ) INTEGER :: i DO i = 1 , 10 , 1 PRINT * ,"First loop body:" , i PRINT * ,"Second loop body:" , i END DO END SUBROUTINE dummy_subroutine
bsd-2-clause
FORTRAN
e0fb50f718b867351d8726d53163e445e9b1c942
return all marsupials
mapmeld/fortran-machine,mapmeld/fortran-machine,mapmeld/fortran-machine,mapmeld/fortran-machine,mapmeld/fortran-machine
marsupial.f90
marsupial.f90
! sample model for Fortran.io and SQLite database ! table should already be created module marsupial use sqlite use string_helpers implicit none type(SQLITE_DATABASE) :: db type(SQLITE_STATEMENT) :: stmt type(SQLITE_COLUMN), dimension(:), pointer :: column in...
! sample model for Fortran.io and SQLite database ! table should already be created module marsupial use sqlite use string_helpers implicit none type(SQLITE_DATABASE) :: db type(SQLITE_STATEMENT) :: stmt type(SQLITE_COLUMN), dimension(:), pointer :: column in...
bsd-3-clause
FORTRAN
bc61f0bfd9ac1e9a9f5d4a1bfafca496a4d2a458
Fix compile issue caused by design changes (#179)
lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,lowRISC/ibex,AmbiML/ibex,AmbiML/ibex,lowRISC/ibex,AmbiML/ibex
dv/uvm/ibex_dv.f
dv/uvm/ibex_dv.f
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 ${PRJ_DIR}/ibex/dv/uvm/tb/prim_clock_gating.sv // ibex CORE RTL files +incdir+${PRJ_DIR}/ibex/rtl ${PRJ_DIR}/ibex/rtl/ibex_pkg.sv ${PRJ_DIR}/ibex/rtl/ibex_tracer_pkg.sv...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 ${PRJ_DIR}/ibex/dv/uvm/tb/prim_clock_gating.sv // ibex CORE RTL files +incdir+${PRJ_DIR}/ibex/rtl ${PRJ_DIR}/ibex/rtl/ibex_defines.sv ${PRJ_DIR}/ibex/rtl/ibex_tracer_de...
apache-2.0
FORTRAN
5fe43718cd54e2170118b42614ebefee1d338ddf
Update meanmax.f95
chtheodoro/habfuzz
habfuzz/meanmax.f95
habfuzz/meanmax.f95
subroutine meanmax use fdeclarations implicit none !Defuzzification according to the mean-max method do i=1,z hs(i)=max(high(i),good(i),moderate(i),poor(i),bad(i)) if (hs(i)>0) then if (hs(i)==high(i)) then x1high(i)=high(i)*hm-high(i)*ha+ha x2high(i)=hb-high(i)*hb+high(i)*hm aa(i,zz)=((x1high(i)+x2high...
subroutine meanmax use fdeclarations implicit none !Defuzzification according to the mean-max method do i=1,z hs(i)=max(high(i),good(i),moderate(i),poor(i),bad(i)) if (hs(i)>0) then if (hs(i)==high(i)) then x1high(i)=high(i)*hm-high(i)*ha+ha x2high(i)=hb-high(i)*hb+high(i)*hm aa(i,zz)=((x1high(i)+x2high...
apache-2.0
FORTRAN
fa32ee4383fe0341837419ad4b13906852f663c1
Update reference for fusion4 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/fusion4/reference.f90
test/loops/fusion4/reference.f90
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i INTEGER :: j INTEGER :: k DO i = 1 , 5 , 1 DO j = 1 , 4 , 1 DO k = 1 , 2 , 1 PRINT * ,"First loop body:" , i , j PRINT * ,"Second loop body:" , i , j END DO END DO END DO END SUBROUTINE clawl...
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i INTEGER :: j INTEGER :: k DO i = 1 , 5 , 1 DO j = 1 , 4 , 1 DO k = 1 , 2 , 1 PRINT * ,"First loop body:" , i , j PRINT * ,"Second loop body:" , i , j END DO END DO END DO END SUBROUTINE clawloop...
bsd-2-clause
FORTRAN
1fbfcdd1eb6ace9628baa02a2869a1179e706d4e
Add data to fciqmc data module.
hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande
src/fciqmc_data.f90
src/fciqmc_data.f90
module fciqmc_data use const implicit none ! timestep real(dp) :: tau ! shift real(dp) :: shift ! Walker information: main list. ! a) determinants integer(i0), allocatable :: walker_dets(:,:) ! (basis_length, walker_length) ! b) walker population integer, allocatable :: walker_population(:) ! (walker_length) ! c) D...
module fciqmc_data use const implicit none ! timestep real(dp) :: tau ! Walker information: main list. ! a) determinants integer(i0), allocatable :: walker_dets(:,:) ! (basis_length, walker_length) ! b) walker population integer, allocatable :: walker_population(:) ! (walker_length) ! c) Diagonal matrix elements, K_...
lgpl-2.1
FORTRAN
d41749209d1e85a11143aaa47f06e6f7eb602254
Add Ledd
M2-AAIS/BAD
mod_read_parameters.f90
mod_read_parameters.f90
! Module that reads the parameter out of a file module mod_read_parameters use mod_constants implicit none private public :: get_parameters, process_dx contains subroutine get_parameters (initial_param) !read parameter in the input file : ./input_parameter.dat implicit none ! functi...
! Module that reads the parameter out of a file module mod_read_parameters use mod_constants implicit none private public :: get_parameters, process_dx contains subroutine get_parameters (initial_param) !read parameter in the input file : ./input_parameter.dat implicit none ! functi...
mit
FORTRAN
e28536f80abb51e96de60a231e4ae59b6dcfa9c0
add f90 example
bast/python-cffi-demo,bast/python-cffi-demo,bast/python-cffi-demo
pi/pi.f90
pi/pi.f90
program pi implicit none print *, approximate_pi(1000000) contains pure real(8) function distance_to_origin_squared(x, y) real(8), intent(in) :: x real(8), intent(in) :: y distance_to_origin_squared = x*x + y*y end function real(8) function approximate_pi(num_points) ...
mpl-2.0
FORTRAN
721c3056e82a6c4e50c6e4eae4a3e0e7afda46a8
Add another f2py statement.
ihuston/pyflation,ihuston/pyflation
rk4fortran/rk4fortran.f90
rk4fortran/rk4fortran.f90
subroutine rk4stepks(x, y, h, n, m, yout, derivs) ! Do one step of the classical 4th order Runge Kutta method, ! starting from y at x with time step h and derivatives given by derivs implicit none real, intent(in) :: x real, intent(in) :: h integer :: n, m real, intent(in) :: y(0:n-1,0:m-1) ...
subroutine rk4stepks(x, y, h, n, m, yout, derivs) ! Do one step of the classical 4th order Runge Kutta method, ! starting from y at x with time step h and derivatives given by derivs implicit none real, intent(in) :: x real, intent(in) :: h integer :: n, m real, intent(in) :: y(0:n-1,0:m-1) ...
bsd-3-clause
FORTRAN
0e92c660b51c0b3f9dff016e07a2eb4736315fa2
Print statements removed.
mkrzewic/AliRoot,mkrzewic/AliRoot,alisw/AliRoot,ALICEHLT/AliRoot,alisw/AliRoot,miranov25/AliRoot,shahor02/AliRoot,sebaleh/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,ecalvovi/AliRoot,sebaleh/AliRoot,mkrzewic/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,miranov25/AliRoot,jgro...
TFluka/FLUKA_input.f
TFluka/FLUKA_input.f
*======================================================================* * Routines to open and close a given file with a given FORTRAN unit * * from the C++ world * *======================================================================* * *=== FLUKA_OPENINP =======...
*======================================================================* * Routines to open and close a given file with a given FORTRAN unit * * from the C++ world * *======================================================================* * *=== FLUKA_OPENINP =======...
bsd-3-clause
FORTRAN
fb0e7f33e7eb53b2dcb90fa29a03189b5029ad69
Add transformation example for dev
clementval/claw-compiler,clementval/claw-compiler
test/loops/array1/original_code.f90
test/loops/array1/original_code.f90
! Simple program to test the to-loop directive PROGRAM VECTOR_LOOP CALL claw END ! Before the transformation SUBROUTINE claw INTEGER :: j INTEGER :: i = 10 INTEGER, DIMENSION(0:10) :: vec1 DO j = 0, i vec1(j) = j END DO !$claw array-transform vec1(0:i) = vec1(0:i) + 10 PRINT*,vec1 END SUBROUT...
! Simple program to test the to-loop directive PROGRAM VECTOR_LOOP CALL claw END ! Before the transformation SUBROUTINE claw INTEGER :: j INTEGER :: i = 10 INTEGER, DIMENSION(0:9) :: vec1 DO j = 0, i vec1(j) = j END DO !$claw array-transform vec1(0:i) = vec1(0:i) + 10; PRINT*,vec1 END SUBROUT...
bsd-2-clause
FORTRAN
525f9785b47ba2d5fc2ff2193363c4ef20e7f728
Add reference code for loop extraction
clementval/claw-compiler,clementval/claw-compiler
test/loops/extract1/reference.f90
test/loops/extract1/reference.f90
PROGRAM loop_extract INTEGER :: value1 ( 1 : 10 ) INTEGER :: value2 ( 1 : 10 ) INTEGER :: i INTEGER :: istart = 1 INTEGER :: iend = 10 !$claw loop-extract range(i=istart,iend) map(value1:i) map(value2:i) DO i = istart , iend , 1 CALL clawloop_extracted ( value1 ( i ) , value2 ( i ) ) END DO END PROGRAM loop_e...
bsd-2-clause
FORTRAN
0075d6929a752348e55a0bb0c1865278027776d8
Add usage of openacc for test purpose
clementval/claw-compiler,clementval/claw-compiler
test/openacc/primitive1/original_code.f90
test/openacc/primitive1/original_code.f90
PROGRAM test_primitive USE openacc INTEGER :: i !$claw acc parallel DO i = 1, 10 PRINT*,i END DO !$claw acc end parallel !$claw omp do DO i = 1, 10 PRINT*,i END DO !$claw omp end do END PROGRAM test_primitive
PROGRAM test_primitive INTEGER :: i !$claw acc parallel DO i = 1, 10 PRINT*,i END DO !$claw acc end parallel !$claw omp do DO i = 1, 10 PRINT*,i END DO !$claw omp end do END PROGRAM test_primitive
bsd-2-clause
FORTRAN
f0e767f64acafb416e67447edba339365c7ba32f
add comment
kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-playground,kkirstein/proglang-p...
Fortran/ModernFortran/exercises/ex_1.f95
Fortran/ModernFortran/exercises/ex_1.f95
! Exercise 1, p. 62 ! ! Calculating the temperature due to cold front passage program ex_1 use iso_fortran_env, only: real32, output_unit implicit none real(real32), parameter :: temp1 = 12. ! temperature in Atlanta (°C) real(real32), parameter :: temp2 = 24. ! temperature in Miami (°C) real(...
! Exercise 1, p. 62 ! ! Calculating the temperature due to cold front passage program ex_1 use iso_fortran_env, only: real32, output_unit implicit none real(real32), parameter :: temp1 = 12. ! temperature in Atlanta (°C) real(real32), parameter :: temp2 = 24. ! temperature in Miami (°C) real(...
mit
FORTRAN
a3a7d7f5b0f82c01242e1871d553880cf432b8d4
Use specific functions for double-precision floating-point numbers
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/blas/base/dnrm2/src/dnrm2.f
lib/node_modules/@stdlib/blas/base/dnrm2/src/dnrm2.f
!> ! @license Apache-2.0 ! ! Copyright (c) 2020 The Stdlib Authors. ! ! 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 ap...
!> ! @license Apache-2.0 ! ! Copyright (c) 2020 The Stdlib Authors. ! ! 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 ap...
apache-2.0
FORTRAN
355118096303a885a24ae63cadaba336f9db7cc8
Add new test case for loop-hoist with two loop-hoist nested
clementval/claw-compiler,clementval/claw-compiler
test/loops/hoist11/original_code.f90
test/loops/hoist11/original_code.f90
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! ! ! Simple program to test the loop-fusion directive with collapse clause ! PROGRAM LOOP_FUSION CALL clawloop END SUBROUTINE clawloop IMPLICIT NONE INTEGER :: i INTEGER :: j INTEGER :: k INTEGER :: iend = 2 IN...
bsd-2-clause
FORTRAN
e9d8ba747beef41be158a2622219f629d07cb917
Put this routine back in, since it is needed to compute element stiffness matrix.
geodynamics/lithomop,geodynamics/lithomop,geodynamics/lithomop,geodynamics/lithomop
lithomop3d/liblithomop3d/getmat.f
lithomop3d/liblithomop3d/getmat.f
c -*- Fortran -*- c c~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c c Charles A. Williams c Rensselaer Polytechnic Institute c (C) 2004 All Rights Reserved c c Copyright 2004 Rensselaer Polytechnic Institute. c All wo...
mit
FORTRAN
707ab78d15bf254d7146e03717654e4c2ab1531f
Add dummy wrapper for dot and cladiv/zladiv functions.
mikebenfield/scipy,matthewalbani/scipy,argriffing/scipy,zaxliu/scipy,rmcgibbo/scipy,sriki18/scipy,tylerjereddy/scipy,josephcslater/scipy,mingwpy/scipy,raoulbq/scipy,Kamp9/scipy,petebachant/scipy,pyramania/scipy,nonhermitian/scipy,njwilson23/scipy,njwilson23/scipy,fernand/scipy,felipebetancur/scipy,matthewalbani/scipy,p...
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
double complex function wzdotc(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, zdotc integer n, incx, incy zdotc(n, zx, incx, zy, incy, z) wzdotc = zdotc end double complex function wzdotu(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, ...
bsd-3-clause
FORTRAN
c3a7a452cae93b5e5a9c451ddcf0743155905429
FIx collapse of type name and variable name
M2-AAIS/BAD
mod_integrator.f90
mod_integrator.f90
! Module that exposes the integrator that transforms the state_in to the state_out module mod_integrator private public :: do_timestep contains subroutine do_timestep (states) use mod_constants use mod_timestep implicit none type (state), intent(in), dimension(n_cell) :: states ...
! Module that exposes the integrator that transforms the state_in to the state_out module mod_integrator private public :: do_timestep contains subroutine do_timestep (state) use mod_constants use mod_timestep implicit none type (state), intent(in), dimension(n_cell) :: state ...
mit
FORTRAN
a1b6211307e6b77129d9188222245be7c6517874
Add polyfit.f
mherman09/Hdef,mherman09/Hdef,mherman09/Hdef
polyfit.f
polyfit.f
PROGRAM polyfit IMPLICIT none CHARACTER*30 ifile,ofile LOGICAL ex INTEGER NMAX,nobs PARAMETER (NMAX=40000) REAL*8 xobs(NMAX),yobs(NMAX) INTEGER ORDMAX,ord PARAMETER (ORDMAX=10) REAL*8 coeff(ORDMAX),xpre,ypre,dx,xconst,yconst INTEGER i,j,npre C---- C Pa...
mit
FORTRAN
ce6a3f8b1f04179666427552eedf2d7c20ea4a46
Copy initial vector into state vector
M2-AAIS/BAD
main.f90
main.f90
program black_hole_diffusion use mod_constants use mod_variables use mod_read_parameters use mod_s_curve implicit none integer :: iteration, n type(state) :: s call get_parameters() ! Call init variable to create the adim state vector and ! generate the state_0 call init_variable_0() ! ...
program black_hole_diffusion use mod_constants use mod_variables use mod_read_parameters use mod_s_curve implicit none call get_parameters() call init_variable_0() call curve() end program black_hole_diffusion
mit
FORTRAN
9798c0dd0e594f975cf960cb98d362ee1b049e09
fix gfortran 4.9.2 -fbounds-check runtime error
SCOREC/phasta,cwsmith/phasta,cwsmith/phasta,yangf4/phasta,yangf4/phasta,matthb2/phasta,matthb2/phasta,PHASTA/phasta,PHASTA/phasta,PHASTA/phasta,matthb2/phasta,yangf4/phasta,SCOREC/phasta,SCOREC/phasta,cwsmith/phasta
phSolver/compressible/tnanq.f
phSolver/compressible/tnanq.f
subroutine tnanq (u, n, arrname) include "common.h" dimension u(nshg,n),rnan(2) character(len=*) arrname nnanq = 0 nlarge = 0 DO j = 1,n DO i = 1,nshg if (abs(u(i,j)).gt.1.0e10) nlarge=nlarge+1 if (u(i,j) .ne. u(i,j)) then nnanq = nnanq + 1 u(i,j)=9.876...
subroutine tnanq (u, n, arrname) include "common.h" dimension u(nshg,n),rnan(2) character*8 arrname nnanq = 0 nlarge = 0 DO j = 1,n DO i = 1,nshg if (abs(u(i,j)).gt.1.0e10) nlarge=nlarge+1 if (u(i,j) .ne. u(i,j)) then nnanq = nnanq + 1 u(i,j)=9.876543e2...
bsd-3-clause
FORTRAN
8784ca0a47ce6d9182e31df8149ecb5a6139b6df
add ref
rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs
sandbox/fortran-blas/test_scopy.f90
sandbox/fortran-blas/test_scopy.f90
! https://software.intel.com/en-us/mkl-developer-reference-fortran-blas-code-examples program copy_main real x(10), y(10) integer n, incx, incy, i n = 3 incx = 3 incy = 1 do i = 1, 10 x(i) = i end do call scopy (n, x, incx, y, incy) print *, 'Y = ', (y(i), i = 1, n) end
program copy_main real x(10), y(10) integer n, incx, incy, i n = 3 incx = 3 incy = 1 do i = 1, 10 x(i) = i end do call scopy (n, x, incx, y, incy) print *, 'Y = ', (y(i), i = 1, n) end
apache-2.0
FORTRAN
7a44235e9627d124f478120fc27b6e7ea922b2d7
call to util_cpusec to replace call to etime
rangsimanketkaew/NWChem
src/selci/gettim.f
src/selci/gettim.f
subroutine selci_gettim(cpud,elapsd) implicit double precision (a-h,o-z) real*4 elast,timediff external util_cpusec integer last,ienter save ienter,last,elast data ienter/0/ if(ienter.eq.0) then ienter=1 call cputm(last) elast = util_cpusec() ...
subroutine selci_gettim(cpud,elapsd) implicit double precision (a-h,o-z) real*4 etime,tt(2),elast,timediff external etime integer last,ienter save ienter,last,elast data ienter/0/ if(ienter.eq.0) then ienter=1 call cputm(last) elast = etime(tt) ...
mit
FORTRAN
c4689752c96a17ad128a315ad777bf05f2524bfa
Add comment about getarg()
tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime,tycho/genprime
genprime.f90
genprime.f90
program main implicit none integer, parameter :: i4b = selected_int_kind(9) real times, timet, time integer(kind=i4b) :: strt, stp, x, z character(len=20) :: buffer ! NOTE: getarg is an extension (not strictly F90/95) but is supported in most ! compilers. call getarg(1,buffer) read(buffer,*) strt ca...
program main implicit none integer, parameter :: i4b = selected_int_kind(9) real times, timet, time integer(kind=i4b) :: strt, stp, x, z character(len=20) :: buffer call getarg(1,buffer) read(buffer,*) strt call getarg(2,buffer) read(buffer,*) stp do x = strt, stp, strt call cpu_time(times) ...
bsd-3-clause
FORTRAN
328186e6aedc3ff63cb950d1304465cbf129d86c
Update hello-omp.f90
PawseySupercomputing/Develop-with-OpenMP,PawseySupercomputing/Develop-with-OpenMP
Workbench/Exercise1/ftn/hello-omp.f90
Workbench/Exercise1/ftn/hello-omp.f90
! ! Exercise 1: ! Intent : Write a helloworld program with OpenMP. ! ! Goals: ! 1. Include OpenMP header ! 2. Within the scope of #pragma omp parallel ! a. Each thread queries it thread ID. ! b. Each thread then prints its thread ID. ! program hello90 integer:: id,nthreads,omp_get_thread_num,omp_get_num_threads...
! ! Exercise 1: ! Intent : Write a helloworld program with OpenMP. ! ! Goals: ! 1. Include OpenMP header ! 2. Within the scope of #pragma omp parallel ! a. Each thread queries it thread ID. ! b. Each thread then prints its thread ID. ! program hello90 !Initialize omp parallel integer:: id ! Call environ...
cc0-1.0
FORTRAN
21122fec78515828ee8f8e43085573d7e3517311
Allow for more general velocities fields on the torus
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
applications/advection/2d/torus/user_4.6/b4step2.f
applications/advection/2d/torus/user_4.6/b4step2.f
subroutine b4step2(maxmx, maxmy, mbc,mx,my,meqn,q, & xlower,ylower,dx,dy,time,dt,maux,aux) implicit none integer mbc, mx, my, meqn, maux, maxmx, maxmy double precision xlower, ylower, dx, dy, time, dt double precision q(1-mbc:maxmx+mbc,1-mbc:maxmy+mbc, meqn) double p...
bsd-2-clause
FORTRAN
5db70e4c9180189c599cab1113d26a6ffd285d43
Revert previous change since that caused a run-time error for example 14, and because Arjen and Andrew have come to consensus on a better solution to the current example 20 and 28 differences for examples/f95.
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
bindings/f95/strutil.f90
bindings/f95/strutil.f90
! $Id$ ! ! Copyright (C) 2004 Alan W. Irwin ! ! This file is part of PLplot. ! ! PLplot is free software; you can redistribute it and/or modify ! it under the terms of the GNU Library General Public License as published ! by the Free Software Foundation; either version 2 of the License, or ! (at your option) any later...
! $Id$ ! ! Copyright (C) 2004 Alan W. Irwin ! ! This file is part of PLplot. ! ! PLplot is free software; you can redistribute it and/or modify ! it under the terms of the GNU Library General Public License as published ! by the Free Software Foundation; either version 2 of the License, or ! (at your option) any later...
lgpl-2.1
FORTRAN
17ad7ec1afd2c41e8e9e9204868a8d970b2bd344
fix printing of negatives
zingale/hydro1d
output.f90
output.f90
module output_module use grid_module use datatypes_module use params_module use variables_module use eos_module implicit none contains subroutine output(U, t, n) type(gridvar_t), intent(in) :: U real (kind=dp_t), intent(in) :: t integer, intent(in) :: n character (len=4) ::...
module output_module use grid_module use datatypes_module use params_module use variables_module use eos_module implicit none contains subroutine output(U, t, n) type(gridvar_t), intent(in) :: U real (kind=dp_t), intent(in) :: t integer, intent(in) :: n character (len=4) ::...
bsd-3-clause
FORTRAN
92be79d5de362ecd8040b6ce0c9dbd45af6718c5
Change name of program splitwave
anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran
progs/src/splitwave.f90
progs/src/splitwave.f90
!=============================================================================== program splitwave_prog !=============================================================================== use f90sac use splitwave implicit none type(SACtrace) :: t1, t2, t3 real :: theta, dt character(len=250) :: f, ...
!=============================================================================== program splitwave !=============================================================================== use f90sac use splitwave implicit none type(SACtrace) :: t1, t2, t3 real :: theta, dt character(len=250) :: f, f1, f...
mit
FORTRAN
257bf92e66f214a83da86e53424f5964008f9d50
Add dummy wrapper for dot and cladiv/zladiv functions.
jasonmccampbell/scipy-refactor,scipy/scipy-svn,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,scipy/scipy-svn,jasonmccampbell/scipy-refactor,scipy/scipy-svn,scipy/scipy-svn
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
double complex function wzdotc(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, zdotc integer n, incx, incy zdotc(n, zx, incx, zy, incy, z) wzdotc = zdotc end double complex function wzdotu(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, ...
bsd-3-clause
FORTRAN
27b08772f6602d63b56f6eec173558550597ce6c
remove ddebug message
rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP
src/hamiltonandoverlapsetup.f90
src/hamiltonandoverlapsetup.f90
subroutine hamiltonandoverlapsetup(system,ngp,apwalm,igpig,vgpc) use modfvsystem use modmain implicit none type(evsystem)::system integer, intent(in)::ngp complex(8), intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw,natmtot) integer, intent(in) :: igpig(ngkmax) real(8), intent(in) :: vgpc(3,ngkmax) integer ::n character(...
subroutine hamiltonandoverlapsetup(system,ngp,apwalm,igpig,vgpc) use modfvsystem use modmain implicit none type(evsystem)::system integer, intent(in)::ngp complex(8), intent(in) :: apwalm(ngkmax,apwordmax,lmmaxapw,natmtot) integer, intent(in) :: igpig(ngkmax) real(8), intent(in) :: vgpc(3,ngkmax) integer ::n character(...
lgpl-2.1
FORTRAN
dbcb0c8efb92bd4e9202c10daead384b0085cd61
Bump version
SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack
source/version.f90
source/version.f90
module mod_version ! Keep data type in sync with 'cr_version' and 'cr_moddate' character(len=8), parameter :: version = "5.1.2" integer, parameter :: numvers = 50102 character(len=10), parameter :: moddate = "10.01.2019" character(len=40), parameter :: git_revision = SIXTRACK_GIT_REVISION ! Git has...
module mod_version ! Keep data type in sync with 'cr_version' and 'cr_moddate' character(len=8), parameter :: version = "5.1.1" integer, parameter :: numvers = 50101 character(len=10), parameter :: moddate = "13.12.2018" character(len=40), parameter :: git_revision = SIXTRACK_GIT_REVISION ! Git has...
lgpl-2.1
FORTRAN
5aeae7e9c934d2298f5b73e02f56fa75e8e7a118
Add function name
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/math/base/blas/dasum/lib/dasum.f
lib/node_modules/@stdlib/math/base/blas/dasum/lib/dasum.f
!> Computes the sum of absolute values. ! ! ## Notes ! ! * Modified version of reference BLAS level1 routine (version 3.7.0). Updated to "free form" Fortran 95. ! ! ## Authors ! ! * Univ. of Tennessee ! * Univ. of California Berkeley ! * Univ. of Colorado Denver ! * NAG Ltd. ! ! ## History ! ! * Jack Dongarra, linpack,...
!> Computes the sum of absolute values. ! ! ## Notes ! ! * Modified version of reference BLAS level1 routine (version 3.7.0). Updated to "free form" Fortran 95. ! ! ## Authors ! ! * Univ. of Tennessee ! * Univ. of California Berkeley ! * Univ. of Colorado Denver ! * NAG Ltd. ! ! ## History ! ! * Jack Dongarra, linpack,...
apache-2.0
FORTRAN
1f7eaea858cdc1c000621b6e11b6e4cbbf0c34c8
Add warning about initialisation (or, rather, not) of hmatel_t.
hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande
src/hamiltonian_data.f90
src/hamiltonian_data.f90
module hamiltonian_data ! Small module to contain hamiltonian-related derived types to avoid cyclic ! dependencies until a better place for them is found. use const, only: p implicit none ! --- WARNING --- ! Only one component of hamil_t is in use at a time, depending upon the context. ! The other component is NOT ...
module hamiltonian_data ! Small module to contain hamiltonian-related derived types to avoid cyclic ! dependencies until a better place for them is found. use const, only: p implicit none type hmatel_t ! Derived type to contain all information on a particular hmatel, to ! allow compatibility between real an...
lgpl-2.1
FORTRAN
61013504ece18e7c2f3062ef20de24739008bf81
fix error in variable name
cphyc/n-body,cphyc/n-body
io_tools.f90
io_tools.f90
module io_tools use constants implicit none private public :: read_npoints, read_mpos, write_dump contains subroutine read_npoints (un) integer, intent(in) :: un read (un, *) npoints end subroutine read_npoints subroutine read_mpos(un, m, r) integer, intent(in) ...
module io_tools use constants implicit none private public :: read_npoints, read_mpos, write_dump contains subroutine read_npoints (un) integer, intent(in) :: un read (un, *) npoints end subroutine read_npoints subroutine read_mpos(un, m, r) integer, intent(in) ...
mit
FORTRAN
c96ea8a42a0f6ef291f899798c579ed12120e5e6
Add command line argument support
ManyClaw/ManyClaw,ManyClaw/ManyClaw,ManyClaw/ManyClaw
src/fortran/main.f90
src/fortran/main.f90
program manyclaw ! Test function definitions use test_functions_module ! Utility modules use timer_module use precision_module implicit none ! Command line arguments character(len=10) :: input_nx,input_ny,input_num_tests ! Local storage integer :: num_tests real(...
program manyclaw ! Test function definitions use test_functions_module ! Utility modules use timer_module use precision_module implicit none ! Test suite parameters integer, parameter :: NUM_TESTS = 4 ! Local storage real(kind=TK) :: ave_time(NUM_TESTS) ! Common...
bsd-3-clause
FORTRAN
bcd52bccbd29cdb4e25f60504bb869ed5ea45d6d
Remove extra space
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
lib/node_modules/@stdlib/math/base/blas/dasum/src/dasum.f
lib/node_modules/@stdlib/math/base/blas/dasum/src/dasum.f
!> Computes the sum of absolute values. ! ! ## Notes ! ! * Modified version of reference BLAS level1 routine (version 3.7.0). Updated to "free form" Fortran 95. ! ! ## Authors ! ! * Univ. of Tennessee ! * Univ. of California Berkeley ! * Univ. of Colorado Denver ! * NAG Ltd. ! ! ## History ! ! * Jack Dongarra, linpack,...
!> Computes the sum of absolute values. ! ! ## Notes ! ! * Modified version of reference BLAS level1 routine (version 3.7.0). Updated to "free form" Fortran 95. ! ! ## Authors ! ! * Univ. of Tennessee ! * Univ. of California Berkeley ! * Univ. of Colorado Denver ! * NAG Ltd. ! ! ## History ! ! * Jack Dongarra, linpack,...
apache-2.0
FORTRAN
210436c40bb5790c40aab2c8cdbb42a2ab1cd686
add longline.f90 to misc for now
thender/ppp,maddenp/ppp,thender/ppp,maddenp/ppp,maddenp/ppp,thender/ppp
misc/longline.f90
misc/longline.f90
program p print '(a)','Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed & &do eiusmod tempor incididunt ut labore et dolore magna aliqua.' end program p
apache-2.0
FORTRAN
f3c3eb51407c50afd90a725868f911dd33ea366b
Add IEEE_EXCEPTIONS (mod from gfortran)
clementval/claw-compiler,clementval/claw-compiler
modules/ieee_exceptions.f90
modules/ieee_exceptions.f90
! Implementation of the IEEE_EXCEPTIONS standard intrinsic module ! Copyright (C) 2013-2017 Free Software Foundation, Inc. ! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> ! ! This file is part of the GNU Fortran runtime library (libgfortran). ! ! Libgfortran is free software; you can redistrib...
bsd-2-clause
FORTRAN
2e003f68839f0560f2495111062b177215026def
Update boundaries to get S everywhere
M2-AAIS/BAD
main_curve.f90
main_curve.f90
program black_hole_s_curve use mod_constants use mod_read_parameters use mod_s_curve ! CAREFUL !!! The output arrays are for the NON dimensioned values of the surface density S (not Sigma) and the Temperature whereas the produced data files used when ploting are dimensioned, in log10, for Sigma (not S) and the...
program black_hole_s_curve use mod_constants use mod_read_parameters use mod_s_curve ! CAREFUL !!! The output arrays are for the NON dimensioned values of the surface density S (not Sigma) and the Temperature whereas the produced data files used when ploting are dimensioned, in log10, for Sigma (not S) and the...
mit
FORTRAN
cb2b9f83f5cb7e011eefde09ca058791f3b36c60
Fix bugs in handling transformations of zero-length or completely blank character strings.
FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot
bindings/f77/strutil.f
bindings/f77/strutil.f
! $Id$ subroutine plstrf2c(string1, string2, maxlen) integer*4 maxlen character*(*) string1, string2 integer*4 limit, islen external islen limit = min0(islen(string1),maxlen-1) do 100 i = 1,limit string2(i:i) = string1(i:i) 100 continue string2(limit+1:lim...
! $Id$ subroutine plstrf2c(string1, string2, maxlen) integer*4 maxlen character*(*) string1, string2 integer*4 limit, islen external islen limit = min0(islen(string1),maxlen-1) do 100 i = 1,limit string2(i:i) = string1(i:i) 100 continue string2(i:i) = char...
lgpl-2.1
FORTRAN
ef8acb38a9c1c518fcfdfeaf6f541dfa715068c0
Add source file list (*.f file)
AmbiML/ibex,AmbiML/ibex,lowRISC/ibex,AmbiML/ibex,lowRISC/ibex,lowRISC/ibex,lowRISC/ibex,AmbiML/ibex
rtl/ibex_core.f
rtl/ibex_core.f
include/ibex_defines.sv include/ibex_tracer_defines.sv ibex_alu.sv ibex_compressed_decoder.sv ibex_controller.sv ibex_cs_registers.sv ibex_debug_unit.sv ibex_decoder.sv ibex_int_controller.sv ibex_ex_block.sv ibex_id_stage.sv ibex_if_stage.sv ibex_load_store_unit.sv ibex_multdiv_slow.sv ibex_multdiv_fast.sv ibex_prefet...
apache-2.0
FORTRAN
b4ce088f6c7d397b30997cae7926e2746167e155
Update reference for extract3 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/extract3/reference.f90
test/loops/extract3/reference.f90
PROGRAM loop_extract INTEGER :: value1 ( 1 : 10 ) INTEGER :: value2 ( 1 : 10 ) INTEGER :: j INTEGER :: i INTEGER :: istart = 1 INTEGER :: iend = 10 DO j = 1 , 10 , 1 value1 ( j ) = j value2 ( j ) = j END DO !$acc parallel DO i = istart , iend , 1 CALL clawloop_extracted0 ( value1 ( i ) , value2 ( i ) )...
PROGRAM loop_extract INTEGER :: value1 ( 1 : 10 ) INTEGER :: value2 ( 1 : 10 ) INTEGER :: j INTEGER :: i INTEGER :: istart = 1 INTEGER :: iend = 10 DO j = 1 , 10 , 1 value1 ( j ) = j value2 ( j ) = j END DO !$acc parallel DO i = istart , iend , 1 CALL clawloop_extracted0 ( value1 ( i ) , value2 ( i ) ) ...
bsd-2-clause
FORTRAN
b9fe5f75ade46b75fe7bb44b30067c976c7d85c6
Add pointer to the test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction18/mo_column.f90
test/claw/abstraction18/mo_column.f90
MODULE mo_column IMPLICIT NONE CONTAINS SUBROUTINE compute_all(nz, q, t) INTEGER, INTENT(IN) :: nz ! Size of the array field REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only REAL, INTENT(INOUT) :: q(:) ! Field declared as one column only REAL, TARGET :: z(1:nz) INTEGER ::...
MODULE mo_column IMPLICIT NONE CONTAINS SUBROUTINE compute_all(nz, q, t) INTEGER, INTENT(IN) :: nz ! Size of the array field REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only REAL, INTENT(INOUT) :: q(:) ! Field declared as one column only REAL :: z(1:nz) INTEGER :: k ...
bsd-2-clause
FORTRAN
095a27aed06363306021dd560ea7476568609cd4
Update ref
clementval/claw-compiler,clementval/claw-compiler
test/claw/sca/sca42/reference_cpu.f90
test/claw/sca/sca42/reference_cpu.f90
MODULE mo_column CONTAINS SUBROUTINE compute_column ( p1 , nz , q , t , nproma ) INTEGER , INTENT(IN) :: nproma INTEGER , INTENT(IN) :: nz INTEGER , INTENT(IN) :: p1 REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER :: k REAL :: c INTEGER , PARAMETER :: c0 = 8.0 INTEGE...
MODULE mo_column CONTAINS SUBROUTINE compute_column ( p1 , nz , q , t , nproma ) INTEGER , INTENT(IN) :: nproma INTEGER , INTENT(IN) :: nz INTEGER , INTENT(IN) :: p1 REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER :: k REAL :: c INTEGER , PARAMETER :: c0 = 8.0 INTEGE...
bsd-2-clause
FORTRAN
aed57ec961924126650bedcc1ebd4f58a401df1a
Update program to use caching
anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran
progs/src/sph_tess.f90
progs/src/sph_tess.f90
!=============================================================================== ! One of Andy Nowacki's Fortran utility modules for dealing with seismic ! anisotropy and other problems. ! ! Andy Nowacki <andy.nowacki@bristol.ac.uk> ! ! See the file LICENCE for licence details. !========================================...
!=============================================================================== program sph_tess !=============================================================================== ! Dump the points for a level-n tesselation of a sphere, starting with an ! icosahedron. use sphere_tesselate use spherical_geometry ...
mit
FORTRAN
c8dba6c9246130481c4f833debe53eb00215e173
fix style in units module
simomarsili/elss
src/units.f90
src/units.f90
! Copyright (C) 2015-2017, Simone Marsili ! All rights reserved. ! License: BSD 3 clause module units use kinds implicit none private public :: units_initialize public :: units_open, units_open_unf integer(kint) :: nunits contains subroutine units_initialize implicit none nunits = 10 ...
! Copyright (C) 2015-2017, Simone Marsili ! All rights reserved. ! License: BSD 3 clause module units use kinds implicit none private public :: units_initialize public :: units_open, units_open_unf integer(kint) :: nunits contains subroutine units_initialize implicit none nunits = 10 ...
bsd-3-clause
FORTRAN
dad407cc03e39f8d422129d80816165b8f7ade9f
Add more Fortran constants
pressel/MPI.jl,JuliaPackageMirrors/MPI.jl,JuliaParallel/MPI.jl,jkozdon/MPI.jl,staticfloat/MPI.jl
make_f_const.f
make_f_const.f
PROGRAM MAIN C Include the following althoung not standard 77 IMPLICIT NONE INCLUDE 'mpif.h' C C CHARACTER(LEN=*), PARAMETER :: FMT1 = "(A, I32, A)" WRITE(*,FMT1) 'const MPI_COMM_SELF = int32(', MPI_COMM_SELF , ')' WRITE(*,FMT1) 'const MPI_COMM_WORLD = int32(', MPI_COMM_WORLD...
PROGRAM MAIN INCLUDE 'mpif.h' C CHARACTER(LEN=*), PARAMETER :: FMT1 = "(A, I32, A)" WRITE(*,FMT1) 'const MPI_COMM_WORLD = int32(', MPI_COMM_WORLD, ')' WRITE(*,FMT1) 'const MPI_SUCCESS = int32(', MPI_SUCCESS, ')' WRITE(*,FMT1) 'const MPI_BYTE = int32(', MPI_BYTE, ')' C ...
unlicense
FORTRAN
914fe24861d9227ce0fd374421473e0409449407
Change pointers to allocatables. See HISTORY.md
msg-byu/enumlib,wsmorgan/enumlib
src/driver.f90
src/driver.f90
PROGRAM driver use num_types use derivative_structure_generator use io_utils implicit none integer nMin, nMax ! Numbers of various things integer k ! Number of colors/label types (i.e., binary, ternary, etc.) integer LatDim ! 2D or 3D parent lattice? integer nD ! Number of sites in the basis (i.e., number of points in...
PROGRAM driver use num_types use derivative_structure_generator use io_utils implicit none integer nMin, nMax ! Numbers of various things integer k ! Number of colors/label types (i.e., binary, ternary, etc.) integer LatDim ! 2D or 3D parent lattice? integer nD ! Number of sites in the basis (i.e., number of points i...
mit
FORTRAN
4ceaed7680f542c950bca491f2493af797fa5faf
Add string->value conversions, formatting changes
kramer314/fortran-lib
src/string.f90
src/string.f90
! Copyright (c) 2015 Alex Kramer <kramer.alex.kramer@gmail.com> ! See the LICENSE.txt file in the top-level directory of this distribution ! ! This module implements basic string conversions. module string use globvars, only: dp, dp_format, int_format implicit none private public :: string_val public :: s...
module string use globvars, only: dp, dp_format, int_format implicit none private public str_num interface str_num ! Get string representation of numbers module procedure str_dp_real module procedure str_int end interface str_num contains function str_dp_real(num, fmt) result(val) ...
mit
FORTRAN
eaecc5d3b8f4c97cd3fef29dd91d55814a70a03c
Add utility routines for interpolation
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
src/fortran_source2d/fclaw2d_interpolate_util.f
src/fortran_source2d/fclaw2d_interpolate_util.f
double precision function compute_slopes(sl,sr,mth) implicit none double precision sl,sr, s, sc, philim, slim integer mth c # ------------------------------------------------ c # Slope limiting done in amrclaw - see filpatch.f c dupc = valp10 - valc c dumc = valc - valm10...
bsd-2-clause
FORTRAN
787626d0ffac065f4d1c18608f826b4261927d2b
Create Fibinacci.f90
Hranz/Project-Daily,Hranz/Project-Daily,Hranz/Project-Daily
Fortran90/Fibinacci.f90
Fortran90/Fibinacci.f90
!Programmer: Kristoffer Larson !Date: February 17, 2014 ! !Description: Calculates and prints numbers in the fibinacci sequence. ! After 45 numbers the calculations get strange because they go outside ! the limit of integers in fortran90. ! program Fibinacci integer first,second,temp first = 0 second = 1 ...
mit
FORTRAN
e27edb97b876675118803aed112e1221718a82b7
Fix reference with empty end line
clementval/claw-compiler,clementval/claw-compiler
test/loops/extract1/reference.f90
test/loops/extract1/reference.f90
PROGRAM loop_extract INTEGER :: value1 ( 1 : 10 ) INTEGER :: value2 ( 1 : 10 ) INTEGER :: j INTEGER :: i INTEGER :: istart = 1 INTEGER :: iend = 10 DO j = 1 , 10 , 1 value1 ( j ) = j value2 ( j ) = j END DO !$claw loop-extract range(i=istart,iend) map(value1:i) map(value2:i) DO i = istart , iend , 1 CAL...
PROGRAM loop_extract INTEGER :: value1 ( 1 : 10 ) INTEGER :: value2 ( 1 : 10 ) INTEGER :: j INTEGER :: i INTEGER :: istart = 1 INTEGER :: iend = 10 DO j = 1 , 10 , 1 value1 ( j ) = j value2 ( j ) = j END DO !$claw loop-extract range(i=istart,iend) map(value1:i) map(value2:i) DO i = istart , iend , 1 CAL...
bsd-2-clause
FORTRAN
e43b742c4c2821a42de97c4456bdf79305d65304
Add Fortran Template
nathanielng/code-templates,nathanielng/code-templates,nathanielng/code-templates
src/template.f03
src/template.f03
subroutine my_sub(input_file) implicit none character(len=*), intent(in) :: input_file logical :: is_file inquire(file=input_file, exist=is_file) if (is_file.EQV..TRUE.) then write(*,'(A)') "Input file: '"//trim(input_file)//"'" else write(*,'(A)') "Input file: '"//trim(input_fi...
apache-2.0
FORTRAN
e321e1753d44328e37b077a7a0a6149b65fe384a
Remove call to set_maptype_sphere()
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
applications/advection/2d/sphere/setprob.f
applications/advection/2d/sphere/setprob.f
subroutine setprob() implicit none double precision kappa,tfinal double precision rot_angle(2), scale double precision pi common /compi/ pi pi = 4.d0*atan(1.d0) c # read in data to see whether we should run with fixed rotation or not. c # commented this out since it...
subroutine setprob() implicit none double precision kappa,tfinal double precision rot_angle(2), scale double precision pi common /compi/ pi pi = 4.d0*atan(1.d0) c # read in data to see whether we should run with fixed rotation or not. c # commented this out since it...
bsd-2-clause
FORTRAN
1d7e9c79eb330fe74340e46e0ccbc6cc0f9f74be
remove unused variable
pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl/RMPCDMD
test/test_neighbor_list_0.f90
test/test_neighbor_list_0.f90
program test_neighbor_list use common use cell_system use particle_system use hilbert use neighbor_list use tester implicit none type(tester_t) :: test type(particle_system_t) :: solvent type(particle_system_t) :: colloids type(cell_system_t) :: solvent_cells type(neighbor_list_t) :: neigh ...
program test_neighbor_list use common use cell_system use particle_system use hilbert use neighbor_list use tester implicit none type(tester_t) :: test type(particle_system_t) :: solvent type(particle_system_t) :: colloids type(cell_system_t) :: solvent_cells type(neighbor_list_t) :: neigh ...
bsd-3-clause
FORTRAN
e47996114daa060d7f5935572451c30e4663c17e
add some print tests
rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs,rboman/progs
sandbox/fortran/test_print.f90
sandbox/fortran/test_print.f90
program test_print implicit none integer ctab parameter(ctab=10) character*1 cflag(ctab) real*8 err(ctab) integer i, j do i = 1, ctab cflag(i) = '*' err(i) = 3.14d0 enddo write (*, *) "test print:" write (*, 1009) (err(j), cflag(j), j=1, ctab) 1009 format(10(e...
program test_print implicit none integer ctab parameter(ctab=10) character*1 cflag(ctab) real*8 err(ctab) integer i, j do i = 1, ctab cflag(i) = '*' err(i) = 3.14d0 enddo write (*, *) "test print:" write (*, 1009) (err(j), cflag(j), j=1, ctab) 1009 format(10(e...
apache-2.0
FORTRAN
7704d18af3d962e63a3542abcf69fa5c016f56fc
Update reference for dependencies3 test case
clementval/claw-compiler,clementval/claw-compiler
test/driver/dependencies3/reference.f90
test/driver/dependencies3/reference.f90
PROGRAM original_code USE mo_column , ONLY: compute_column END PROGRAM original_code
PROGRAM original_code USE mo_column , ONLY: compute_column END PROGRAM original_code
bsd-2-clause
FORTRAN
a428b2030071d396c4f8511e368716f980d9e507
Remove unused declarations.
UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-R...
fortran_omp_pi_dir/pi.f90
fortran_omp_pi_dir/pi.f90
program pi_openmp implicit none double precision :: step, x, sum, mypi, start, stop, omp_get_wtime integer*8 :: num_steps, i character(len=32) :: arg integer, external :: omp_get_max_threads num_steps = 1000000000 ! Get command line args (Fortran 2003 standard) if (command_argument_count() > ...
program pi_openmp implicit none double precision :: step, x, sum, mypi, start, stop, omp_get_wtime integer*8 :: num_steps, i character(len=32) :: arg integer, external :: omp_get_num_threads integer, external :: omp_get_max_threads integer, external :: omp_get_thread_num num_steps = 1000000...
cc0-1.0
FORTRAN
f9ebadaa49a7d98e7fef5f191f2bf084fe28bbb1
Update reference with assumed dim
clementval/claw-compiler,clementval/claw-compiler
test/claw/kcache3/reference.f90
test/claw/kcache3/reference.f90
PROGRAM claw_test INTEGER :: istart = 0 INTEGER :: iend = 10 INTEGER :: jstart = 0 INTEGER :: jend = 20 CALL kcache ( istart , iend , jstart , jend ) END PROGRAM claw_test SUBROUTINE kcache ( istart , iend , jstart , jend ) INTEGER , INTENT(IN) :: istart INTEGER , INTENT(IN) :: iend INTEGER , INTENT(IN) :: js...
PROGRAM claw_test INTEGER :: istart = 0 INTEGER :: iend = 10 INTEGER :: jstart = 0 INTEGER :: jend = 20 CALL kcache ( istart , iend , jstart , jend ) END PROGRAM claw_test SUBROUTINE kcache ( istart , iend , jstart , jend ) INTEGER , INTENT(IN) :: istart INTEGER , INTENT(IN) :: iend INTEGER , INTENT(IN) :: js...
bsd-2-clause
FORTRAN
220cff212c0242b797eee056e8a7d0e74d90296d
add diagnosis information
pdebuyl-lab/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl/RMPCDMD
test/test_particle_system_0.f90
test/test_particle_system_0.f90
! This file is part of RMPCDMD ! Copyright (c) 2015-2016 Pierre de Buyl and contributors ! License: BSD 3-clause (see file LICENSE) program test_particle_system_0 use particle_system use mt19937ar_module use threefry_module use iso_c_binding use tester implicit none type(particle_system_t) :: p intege...
! This file is part of RMPCDMD ! Copyright (c) 2015-2016 Pierre de Buyl and contributors ! License: BSD 3-clause (see file LICENSE) program test_particle_system_0 use particle_system use mt19937ar_module use threefry_module use iso_c_binding use tester implicit none type(particle_system_t) :: p intege...
bsd-3-clause
FORTRAN
86842fb6314d6ee36d7a8537fc8434e90a4f6cf6
Update rk4.f90
jinbow/Octopus,jinbow/Octopus
src/rk4.f90
src/rk4.f90
subroutine rk4(SNPP) #include "cpp_options.h" ! integrate in time using RK4 scheme use global, only : tt,Npts,iswitch,xyz,dt,Nx,Ny,Nz,& uvwp,dt_file,t_amend implicit none real*8, dimension(3) :: x0,x1,uvw integer*8 :: t0,t1,ip,IPP integer*8, intent(in) :: SNPP t0=ab...
subroutine rk4(SNPP) #include "cpp_options.h" ! integrate in time using RK4 scheme use global, only : tt,Npts,iswitch,xyz,dt,Nx,Ny,Nz,& uvwp,dt_file,t_amend implicit none real*8, dimension(3) :: x0,x1,uvw integer*8 :: t0,t1,ip,IPP integer*8, intent(in) :: SNPP t0=ab...
mit
FORTRAN
9afd7502ccb527ee5d1285908065be09ec1f9a7c
Add Fortran hello world script
thegreatsunra/calling-fortran-from-node,thegreatsunra/calling-fortran-from-node,thegreatsunra/calling-fortran-from-node
hello_fortran.f90
hello_fortran.f90
program hello print *, "Hello Fortran!" end program hello
mit
FORTRAN
0e3bc1262d4772792aefce8f8a04048a59712c56
Update reference for fusion2 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/fusion2/reference.f90
test/loops/fusion2/reference.f90
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i DO i = 1 , 5 , 1 PRINT * ,"First loop body:" , i PRINT * ,"Second loop body:" , i END DO DO i = 1 , 5 , 1 PRINT * ,"Third loop body:" , i PRINT * ,"Fourth loop body:" , i END DO DO i = 1 , 5 , 1 PRI...
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i DO i = 1 , 5 , 1 PRINT * ,"First loop body:" , i PRINT * ,"Second loop body:" , i END DO DO i = 1 , 5 , 1 PRINT * ,"Third loop body:" , i PRINT * ,"Fourth loop body:" , i END DO DO i = 1 , 5 , 1 PRINT ...
bsd-2-clause
FORTRAN
94632b3d8029fa29619ffbaef3283177e5c0c66b
Update reference for fusion10 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/fusion10/reference.f90
test/loops/fusion10/reference.f90
PROGRAM loop_opt INTEGER :: i INTEGER :: k INTEGER :: j INTEGER :: d INTEGER :: iend INTEGER :: jend INTEGER :: kend LOGICAL :: flag INTEGER :: sum iend = 20 jend = 40 kend = 30 flag = .FALSE. DO j = 1 , jend , 1 DO k = 1 , kend , 1 d = d + 1 sum = 0 END DO DO k = 1 , kend , 1 DO i = 1 , ...
PROGRAM loop_opt INTEGER :: i INTEGER :: k INTEGER :: j INTEGER :: d INTEGER :: iend INTEGER :: jend INTEGER :: kend LOGICAL :: flag INTEGER :: sum iend = 20 jend = 40 kend = 30 flag = .FALSE. DO j = 1 , jend , 1 DO k = 1 , kend , 1 d = d + 1 sum = 0 END DO DO k = 1 , kend , 1 DO i = 1 , i...
bsd-2-clause
FORTRAN
4cb1c1b598cf89ffa8adf7529f21eadfe27177a8
update file list
bwitherspoon/core,bwitherspoon/core
riscv.f
riscv.f
rtl/alu.sv rtl/bram.sv rtl/control.sv rtl/core.sv rtl/memory.sv rtl/regfile.sv rtl/riscv.sv
rtl/alu.sv rtl/axis.sv rtl/control.sv rtl/core.sv rtl/decode.sv rtl/execute.sv rtl/fetch.sv rtl/fifo.sv rtl/memory.sv rtl/ram.sv rtl/regfile.sv rtl/riscv.sv rtl/rs232.sv rtl/uart.sv
isc
FORTRAN
473592d29e708856810aa30d3b334379e8102293
Update swap_data.f90
arinrb/bsort,arinrb/bsort
templates/src/swap_data.f90
templates/src/swap_data.f90
!> @ingroup swap !> !> @brief !> Swap two #DATA_FULL# values. !> !> @details !> Swap two #DATA_FULL# values. !> !> @param x !> The first value to be swapped. !> !> @param y !> The second value to be swapped. !> !> @author Arin R. Bratt !> @date 05/07/2014 elemental subroutine swap_#DATA_NAME#(x,y) ! Arguments ...
!> @ingroup swap !> !> @brief !> Swap two #DATA_FULL# values. !> !> @details !> Swap two #DATA_FULL# values. !> !> @param x !> The first value to be swapped. !> !> @param y !> The second value to be swapped. !> !> @author Arin R. Bratt !> @date 05/07/2014 pure subroutine swap_#DATA_NAME#(x,y) ! Arguments #DAT...
apache-2.0
FORTRAN
dc7aab998589b33c49fd68ce23f96ef287acf6a0
Add CLAW parallelize forward directive
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction5/main.f90
test/claw/abstraction5/main.f90
! Test the CLAW abstraction model with one additional dimension. PROGRAM test_abstraction5 USE mo_column_extra, ONLY: compute REAL, DIMENSION(20,60) :: q, t ! Fields as declared in the whole model INTEGER :: nproma, nz ! Size of array fields INTEGER :: p ! Loop index nproma = 20...
! Test the CLAW abstraction model with one additional dimension. PROGRAM test_abstraction4 USE mo_column_extra, ONLY: compute REAL, DIMENSION(20,60) :: q, t ! Fields as declared in the whole model INTEGER :: nproma, nz ! Size of array fields INTEGER :: p ! Loop index nproma = 20...
bsd-2-clause
FORTRAN
eabde588c1f4f444d0699f4f9c0399fb5b0ea6a1
Return -1 from line_count() if file already open
mherman09/Hdef,mherman09/Hdef,mherman09/Hdef
src/io_module.f90
src/io_module.f90
module io integer, parameter :: stdin=5 integer, parameter :: stdout=6 integer, parameter :: stderr=0 integer :: verbosity ! 0: Silent, only error messages ! 1: Major progress reports ! 2: Detailed progress reports ! 3: Parsed command line ...
module io integer, parameter :: stdin=5 integer, parameter :: stdout=6 integer, parameter :: stderr=0 integer :: verbosity ! 0: Silent, only error messages ! 1: Major progress reports ! 2: Detailed progress reports ! 3: Parsed command line ...
mit
FORTRAN
e830e9163d00243104189e3992ba948f625f1938
Update reference
clementval/claw-compiler,clementval/claw-compiler
test/driver/dependencies7/reference.f90
test/driver/dependencies7/reference.f90
PROGRAM original_code USE iso_fortran_env END PROGRAM original_code
PROGRAM original_code USE iso_fortran_env END PROGRAM original_code
bsd-2-clause
FORTRAN
2376fc2f2d8d4330e6f56990f49e958b07a69681
Create a main for MRPT_Utils
scemama/quantum_package,scemama/quantum_package,scemama/quantum_package
src/MRPT_Utils/MRPT_Utils_main.irp.f
src/MRPT_Utils/MRPT_Utils_main.irp.f
program MRPT_Utils_main print *, "I'm a core module, I need an main! (maybe a stupid rule)" end program MRPT_Utils_main
agpl-3.0
FORTRAN
ff05e359a72a9c5fb7f06560c263e222efc71fb3
Add streamfunction for annulus
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
applications/advection/2d/torus/psi.f
applications/advection/2d/torus/psi.f
double precision function psi(blockno,xc,yc,t) implicit none double precision xc, yc, t,r integer blockno double precision pi, r2, phi, pi2, alpha logical iscart, issphere, isflat double precision revs_per_s integer*8 cont, get_context double precision xp,yp,zp ...
double precision function psi(blockno,xc,yc,t) implicit none double precision xc, yc, t,r integer blockno double precision pi, r2, phi, pi2, alpha logical iscart, issphere double precision revs_per_s integer*8 cont, get_context double precision xp,yp,zp doub...
bsd-2-clause
FORTRAN
e2fa9ade109c7fe5f3017d5c535c31633113a9c5
Update annulus mapping to include range of theta and radius
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
src/mappings/annulus/mapc2m_annulus.f
src/mappings/annulus/mapc2m_annulus.f
subroutine mapc2m_annulus(blockno,xc,yc,xp,yp,zp,beta,theta) implicit none integer blockno double precision xc,yc,xp,yp,zp, beta, theta(2) double precision pi,pi2 common /compi/ pi,pi2 double precision t1, t2, t, r t1 = theta(1) t2 = theta(2) t = t1 + (t2...
subroutine mapc2m_annulus(blockno,xc,yc,xp,yp,zp,beta,theta) implicit none integer blockno double precision xc,yc,xp,yp,zp, beta, theta(2) double precision pi common /compi/ pi double precision t1, t2, t, r t1 = theta(1) t2 = theta(2) t = t1 + (t2-t1)*xc ...
bsd-2-clause
FORTRAN
e121356977af49c5eb52e1fda0717f656c36f323
fix progress bar float point
mianzhi/fosolvers,mianzhi/fosolvers
libfosolvers/misc.f90
libfosolvers/misc.f90
!----------------------------------------------------------------------------- best with 100 columns !*************************************** ! find the bounding box of the geometry !*************************************** subroutine findBound(rst) use moduleGrid double precision,intent(out)::rst(2,3) ! rst: !...
!----------------------------------------------------------------------------- best with 100 columns !*************************************** ! find the bounding box of the geometry !*************************************** subroutine findBound(rst) use moduleGrid double precision,intent(out)::rst(2,3) ! rst: !...
bsd-2-clause
FORTRAN
1e56b36a625c037965005b19939073d92e3027ae
Update reference_cpu.f90
clementval/claw-compiler,clementval/claw-compiler
test/claw/sca/sca47/reference_cpu.f90
test/claw/sca/sca47/reference_cpu.f90
MODULE test_index_mod CONTAINS SUBROUTINE top_p ( vert , p , im , jm ) INTEGER , INTENT(IN) :: jm INTEGER , INTENT(IN) :: im INTEGER , INTENT(IN) :: vert REAL , INTENT(OUT) :: p ( 1 : im , 1 : jm , 1 : vert ) INTEGER :: i INTEGER :: j CALL set_p ( vert , p ) END SUBROUTINE top_p SUBROUTINE set_p ( ...
MODULE test_index_mod CONTAINS SUBROUTINE top_p ( vert , p , im , jm ) INTEGER , INTENT(IN) :: jm INTEGER , INTENT(IN) :: im INTEGER , INTENT(IN) :: vert REAL , INTENT(OUT) :: p ( 1 : im , 1 : jm , 1 : vert ) INTEGER :: i INTEGER :: j CALL set_p ( vert , p ( i , j , : ) ) END SUBROUTINE top_p SUBRO...
bsd-2-clause
FORTRAN
c6bb43ccc87690ef9f10b0292cd4a9d64ada288c
Add type-bound procedure example
rouson/UCY-parallel-fortran
src/code-jams/type-bound-procedure.f90
src/code-jams/type-bound-procedure.f90
module vector_type implicit none type vector real, allocatable :: x(:) contains procedure :: magnitude end type contains function magnitude(v) result(length_v) class(vector) :: v real :: length_v length_v = norm2(v%x) end function end module module velocity_type use vector_type, o...
bsd-3-clause
FORTRAN
fe4fabdbc91c767808c72713211cdc420cbcfa5e
Fix various syntax problems in dummy fortran wrapper for arpack.
jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,scipy/scipy-svn,lesserwhirls/scipy-cwt,scipy/scipy-svn,lesserwhirls/scipy-cwt,scipy/scipy-svn,scipy/scipy-svn,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/dummy.f
double complex function wzdotc(n, zx, incx, zy, incy) double complex zx(*), zy(*), z double complex zdotc integer n, incx, incy z = zdotc(n, zx, incx, zy, incy) wzdotc = z end double complex function wzdotu(n, zx, incx, zy, incy) double complex ...
double complex function wzdotc(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, zdotc integer n, incx, incy zdotc(n, zx, incx, zy, incy, z) wzdotc = zdotc end double complex function wzdotu(n, zx, incx, zy, incy) double complex zx(*), zy(*), z, ...
bsd-3-clause
FORTRAN
9067264e642b75192487eac10295eea7d947e53b
Add a simple fortran 90 example
smanilov/loop-examples,smanilov/loop-examples
034.fortran/main.f90
034.fortran/main.f90
! Program taken from http://www.mrao.cam.ac.uk/~pa/f90Notes/HTMLNotesnode40.html PROGRAM Triangle IMPLICIT NONE REAL :: a, b, c, Area PRINT *, 'Welcome, please enter the& &lengths of the 3 sides.' READ *, a, b, c PRINT *, 'Triangle''s area: ', Area(a,b,c) END PROGRAM Tria...
mit
FORTRAN
2ac97deb2ff120f0f3e29376b6f44b92cbf95536
Update reference for call2 test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/directive/call2/reference.f90
test/claw/directive/call2/reference.f90
PROGRAM claw_test INTEGER :: istart = 0 INTEGER :: iend = 10 INTEGER :: jstart = 0 INTEGER :: jend = 20 CALL call_test ( istart , iend , jstart , jend ) END PROGRAM claw_test SUBROUTINE call_test ( istart , iend , jstart , jend ) INTEGER , INTENT(IN) :: istart INTEGER , INTENT(IN) :: iend INTEGER , INTENT(IN...
PROGRAM claw_test INTEGER :: istart = 0 INTEGER :: iend = 10 INTEGER :: jstart = 0 INTEGER :: jend = 20 CALL call_test ( istart , iend , jstart , jend ) END PROGRAM claw_test SUBROUTINE call_test ( istart , iend , jstart , jend ) INTEGER , INTENT(IN) :: istart INTEGER , INTENT(IN) :: iend INTEGER , INTENT(IN)...
bsd-2-clause
FORTRAN
64bf0853e6a442093d2282cdb5bd730fcbaf4604
Delete pragma
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction1/reference_gpu.f90
test/claw/abstraction1/reference_gpu.f90
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nproma ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER :: k REAL :: c INTEGER , INTENT(IN) :: nproma INTEGER :: proma DO proma = 1 , nproma , 1 c = 5.345 DO k = 1 , nz...
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nproma ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER :: k REAL :: c INTEGER , INTENT(IN) :: nproma INTEGER :: proma DO proma = 1 , nproma , 1 !$claw define dimension proma...
bsd-2-clause
FORTRAN
ce11a382912aeaa436ce863b7f60d0c4798ed737
Update e3if_dc_m.f
SCOREC/phasta,SCOREC/phasta,SCOREC/phasta
phSolver/compressible/e3if_dc_m.f
phSolver/compressible/e3if_dc_m.f
module e3if_dc_m c c------------------------------------------------------------------------------ c calculating the discontinuity capturing (DC) operator for the interface c macro-elements c------------------------------------------------------------------------------ implicit none c c contains ...
module e3if_dc_m c c------------------------------------------------------------------------------ c calculating the discontinuity capturing (DC) operator for the interface c macro-elements c------------------------------------------------------------------------------ inplicit none c c contains ...
bsd-3-clause
FORTRAN
3e65ad5b392332cdaeaee6e1f570bbcc7bdc92e3
Add spaces to check this case
clementval/claw-compiler,clementval/claw-compiler
test/openmp/primitive1/original_code.f90
test/openmp/primitive1/original_code.f90
PROGRAM test_primitive INTEGER :: i !$claw acc parallel DO i = 1, 10 PRINT*,i END DO !$claw acc end parallel !$claw omp do DO i = 1, 10 PRINT*,i END DO !$claw omp end do END PROGRAM test_primitive
PROGRAM test_primitive INTEGER :: i !$claw acc parallel DO i = 1, 10 PRINT*,i END DO !$claw acc end parallel !$claw omp do DO i = 1, 10 PRINT*,i END DO !$claw omp end do END PROGRAM test_primitive
bsd-2-clause
FORTRAN
6552a35ee1bb0d753f0c534e7a94d554c6371d0e
Add type statement for derivs.
ihuston/pyflation,ihuston/pyflation
rk4fortran/rk4fortran.f90
rk4fortran/rk4fortran.f90
subroutine rk4stepks(x, y, h, n, m, yout, derivs) ! Do one step of the classical 4th order Runge Kutta method, ! starting from y at x with time step h and derivatives given by derivs implicit none real, intent(in) :: x real, intent(in) :: y real, intent(in) :: h integer :: n, m real :: hh...
subroutine rk4stepks(x, y, h, n, m, yout, derivs) ! Do one step of the classical 4th order Runge Kutta method, ! starting from y at x with time step h and derivatives given by derivs implicit none real, intent(in) :: x real, intent(in) :: y real, intent(in) :: h integer :: n, m external der...
bsd-3-clause
FORTRAN
85e9c21e84331dcb16134007d38ba4b4370d43b9
rename subroutine to calc_gradient
jinbow/Octopus,jinbow/Octopus
src/calc_gradient.f90
src/calc_gradient.f90
subroutine calc_gradient(t0,IPP) use global, only: uu,vv,dic,djc,dkc,dif,djf,dkf,pi2c,pj2c,pk2c,pi2f,pj2f,grad,npts,dxg_r,dyg_r,Npts implicit none integer*8, intent(in) :: IPP,t0 real*8 :: tmp0,tmp1,dx,dy,dr integer*8:: i,j,k,ip !$OMP PARALLEL DO PRIVATE(ip,i,j,k,dx,dy,dr,tmp0,tmp1) SHARED(IPP...
subroutine c_gradient(t0,IPP) use global, only: uu,vv,dic,djc,dkc,dif,djf,dkf,pi2c,pj2c,pk2c,pi2f,pj2f,grad,npts,dxg_r,dyg_r,Npts implicit none integer*8, intent(in) :: IPP,t0 real*8 :: tmp0,tmp1,dx,dy,dr integer*8:: i,j,k,ip !$OMP PARALLEL DO PRIVATE(ip,i,j,k,dx,dy,dr,tmp0,tmp1) SHARED(IPP,t0...
mit
FORTRAN
c1d57e354f48c86b000e414a088e266f12120d43
Rename in ddci
scemama/quantum_package,scemama/quantum_package,scemama/quantum_package
plugins/DDCI_selected/ddci.irp.f
plugins/DDCI_selected/ddci.irp.f
program ddci implicit none integer :: i,k double precision, allocatable :: pt2(:), norm_pert(:), H_pert_diag(:) integer :: N_st, degree N_st = N_states allocate (pt2(N_st), norm_pert(N_st),H_pert_diag(N_st)) character*(64) :: perturbation ...
program full_ci implicit none integer :: i,k double precision, allocatable :: pt2(:), norm_pert(:), H_pert_diag(:) integer :: N_st, degree N_st = N_states allocate (pt2(N_st), norm_pert(N_st),H_pert_diag(N_st)) character*(64) :: perturbati...
agpl-3.0
FORTRAN
15b6e1254385be1dafd0fcc26a3707a9cd8b0d5d
Declare arguments in murmurhash_bit_string to match MurmurHash2.
hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande
lib/local/hash.f90
lib/local/hash.f90
module hashing ! Provide interfaces and wrappers to hashing procedures that are written in C++. ! Warning: only working with i0 as a 32-bit or 64-bit integer. implicit none interface ! Interfaces to hashing algorithms written in C. function MurmurHash2(key, N, seed) result(hash) bind(c, name='MurmurHash2') ...
module hashing ! Provide interfaces and wrappers to hashing procedures that are written in C++. ! Warning: only working with i0 as a 32-bit or 64-bit integer. implicit none interface ! Interfaces to hashing algorithms written in C. function MurmurHash2(key, N, seed) result(hash) bind(c, name='MurmurHash2') ...
lgpl-2.1
FORTRAN
0f47a4b061f8623185f2e5063c62e7760d98fd09
enable pipes test
cwells/franz
tests/all.f
tests/all.f
include "tests/assign" include "tests/logic" include "tests/array" include "tests/math" include "tests/args" include "tests/return" include "tests/yield" include "tests/fibonacci" include "tests/pipes"
include "tests/assign" include "tests/logic" include "tests/array" include "tests/math" include "tests/args" include "tests/return" include "tests/yield" include "tests/fibonacci" # include "tests/pipes"
mit
FORTRAN
d310692e5c7ce9ca40f4bb6867067fd6b68e28db
add lj_energy and make default private
laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD
src/interaction.f90
src/interaction.f90
module interaction implicit none private public :: lj_params_t public :: lj_force public :: lj_energy type lj_params_t integer :: n1, n2 double precision, allocatable :: epsilon(:,:) double precision, allocatable :: sigma(:,:) double precision, allocatable :: sigma_sq(:,:) double...
module interaction implicit none type lj_params_t integer :: n1, n2 double precision, allocatable :: epsilon(:,:) double precision, allocatable :: sigma(:,:) double precision, allocatable :: sigma_sq(:,:) double precision, allocatable :: cut(:,:) double precision, allocatable :: cut_s...
bsd-3-clause
FORTRAN