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
3464f4158f34fd38dfc65f13eb3441e54d271cbb
Simplify speed init
cphyc/n-body,cphyc/n-body
physics.f90
physics.f90
module physics use constants implicit none private public :: initial_speeds, compute_force, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), dimension(:, :), intent(in) :: r real(kind = xp), dimension(:, :), intent(out) :: v real(kind = xp) :: omega o...
module physics use constants private public :: initial_speeds, compute_force, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), intent(in), dimension(:, :) :: r real(kind = xp), intent(out), dimension(:, :) :: v integer :: i real(kind = xp) :: d ! distance to...
mit
FORTRAN
93749f5e8fd3fa0bf6cfa414b39839c0df60e539
add file list
bwitherspoon/core,bwitherspoon/core
sim/core/core.f
sim/core/core.f
../rtl/axis.sv ../rtl/block_ram.sv ../rtl/core.sv ../rtl/fifo.sv ../rtl/regfile.sv ../rtl/rs232.sv ../rtl/rv32i.sv ../rtl/uart.sv
isc
FORTRAN
5e4361bf5dab0c0f82ae2e39a16943941b25775c
add cpp_options.h
jinbow/Octopus,jinbow/Octopus
src/global.f90
src/global.f90
module global #include "cpp_options.h" implicit none include "size.h" !for particle integer*8 :: Npts,NPP CHARACTER(32) :: fn_particle_init REAL*4 , DIMENSION(-2:Nx+1,0:Ny-1,-1:Nz,0:1) :: uu,vv,ww REAL*4 , DIMENSION(-2:Nx+1,0:Ny-1,-1:Nz,0:1) :: theta,salt,gam REAL*4 , DIMENSION(-2:Nx+...
module global implicit none include "size.h" #include "cpp_options.h" !for particle integer*8 :: Npts,NPP CHARACTER(32) :: fn_particle_init REAL*4 , DIMENSION(-2:Nx+1,0:Ny-1,-1:Nz,0:1) :: uu,vv,ww REAL*4 , DIMENSION(-2:Nx+1,0:Ny-1,-1:Nz,0:1) :: theta,salt,gam REAL*4 , DIMENSION(-2:...
mit
FORTRAN
9edfc303f58c9b80c028391654b5e464b235f0cc
Remove read_npoints, don’t use dimension
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, write_dump_headers contains subroutine read_mpos(u, m, r) implicit none integer, intent(in) :: u real(kind = xp), intent(out) :: m(:,:) real(kind = xp), intent(out) :: r(:,:) ...
module io_tools use constants implicit none private public :: read_npoints, read_mpos, write_dump, write_dump_headers contains subroutine read_npoints (un) implicit none integer, intent(in) :: un read (un, *) npoints end subroutine read_npoints subroutine read_mpos(un, m, ...
mit
FORTRAN
41d4c0f149e80113aad2c33de33c9fe1e15be2b1
Remove debug code in 'comp/calcPVI.f03'.
jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib
comp/calcPVI.f03
comp/calcPVI.f03
! calcPVI.f03 ! Main program (CUI) for computing PVI. ! Usage: ! calcPVI aus.bin x.bin y.bin z.bin 128 ! Need fortran 2003 program calcPVI use pvi implicit none integer :: n, lenIO double precision, allocatable, dimension(:, :, :) :: aus, x, y, z character (len = 1024) :: nameX, nameY, nameZ, nameAus, ch...
! calcPVI.f03 ! Main program (CUI) for computing PVI. ! Usage: ! calcPVI aus.bin x.bin y.bin z.bin 128 ! Need fortran 2003 program calcPVI use pvi implicit none integer :: n, lenIO double precision, allocatable, dimension(:, :, :) :: aus, x, y, z character (len = 1024) :: nameX, nameY, nameZ, nameAus, ch...
apache-2.0
FORTRAN
00731b1cf09722d210cbbca696387fef836e0121
Update reference for hoist2 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/hoist2/reference.f90
test/loops/hoist2/reference.f90
PROGRAM claw_test CALL claw_hoist2 ( ) END PROGRAM claw_test SUBROUTINE claw_hoist2 ( ) INTEGER :: jt INTEGER :: i INTEGER :: j INTEGER :: ntrac INTEGER :: klev INTEGER :: kproma REAL :: var1 REAL :: var2 REAL :: var3 REAL :: var4 REAL :: var5 TYPE :: dummy REAL :: value1 REAL :: value2 END TYPE du...
PROGRAM claw_test CALL claw_hoist2 ( ) END PROGRAM claw_test SUBROUTINE claw_hoist2 ( ) INTEGER :: jt INTEGER :: i INTEGER :: j INTEGER :: ntrac INTEGER :: klev INTEGER :: kproma REAL :: var1 REAL :: var2 REAL :: var3 REAL :: var4 REAL :: var5 REAL :: array2d_1 ( 1 : 100 ) REAL :: array2d_2 REAL :: arr...
bsd-2-clause
FORTRAN
6844e598563bedf9754d023d4a47a6342caf4c8b
Update reference for hoist4 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/hoist4/reference.f90
test/loops/hoist4/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
8f9e56584a90ca2192febc2c34a011d31bf2148d
Add epsilon2 to the Force
cphyc/n-body,cphyc/n-body
physics.f90
physics.f90
module physics use constants implicit none private public :: initial_speeds, compute_force, compute_initial_variables, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), dimension(:, :), intent(in) :: r real(kind = xp), dimension(:, :), intent(out) :: v real...
module physics use constants implicit none private public :: initial_speeds, compute_force, compute_initial_variables, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), dimension(:, :), intent(in) :: r real(kind = xp), dimension(:, :), intent(out) :: v real...
mit
FORTRAN
3f670c397749059a0f0f68e3b9588f4a9529baa5
Add vector in spherical coords.
jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib
dataType/sphericalvec.f90
dataType/sphericalvec.f90
! vim : tw=72 ts=2 sw=2 ! sphericalvec.f90 ! Implements for 3D vectors in spherical coordinates. ! Coded by jungerstein. ! Except for the licence, it is kind to contact me ! if the codes are involved in your original research. module sphericalvec3d type sphvec3 ! Please note that there is NO POINT using arrays...
apache-2.0
FORTRAN
b78ff5f248a8803a75cbeae7baa936f5f07349a6
Make z as intent inout
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction15/mo_column.f90
test/claw/abstraction15/mo_column.f90
MODULE mo_column IMPLICIT NONE CONTAINS ! Compute only one column FUNCTION compute_column(nz, b, q, t, z) RESULT(r) IMPLICIT NONE INTEGER, INTENT(IN) :: nz ! Size of the array field INTEGER, INTENT(IN) :: b ! Size of the array field REAL, INTENT(INOUT) :: t(1:b) ! Field declared as one...
MODULE mo_column IMPLICIT NONE CONTAINS ! Compute only one column FUNCTION compute_column(nz, b, q, t, z) RESULT(r) IMPLICIT NONE INTEGER, INTENT(IN) :: nz ! Size of the array field INTEGER, INTENT(IN) :: b ! Size of the array field REAL, INTENT(INOUT) :: t(1:b) ! Field declared as one...
bsd-2-clause
FORTRAN
f2876a7c038d97673ee04fbd31345eaa67fee02b
Add derivs to list of depends to try to fix derivs_Dims undeclared error.
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 real :: hh...
bsd-3-clause
FORTRAN
dd122bc1a028994f23f94dc05fc44a2db6e6a714
Use a power of 2 for npoints
cphyc/n-body,cphyc/n-body
constants.f90
constants.f90
module constants implicit none private integer, parameter :: xp = selected_real_kind(8) real(kind = xp), parameter :: pi = 4.0_xp*atan(1.0_xp) real(kind = xp), parameter :: G = 1._xp integer, parameter :: npoints = 2**13 real(kind = xp), parameter :: epsilon2 = npoints**(2._xp/3....
module constants implicit none private integer, parameter :: xp = selected_real_kind(8) real(kind = xp), parameter :: pi = 4.0_xp*atan(1.0_xp) real(kind = xp), parameter :: G = 1._xp integer, parameter :: npoints = 10000 real(kind = xp), parameter :: epsilon2 = npoints**(2._xp/3....
mit
FORTRAN
5ae9f41eaf2b2bdbebbe5ba7e7aea74b9e2b22e8
Create Hello.f90
Hranz/Project-Daily,Hranz/Project-Daily,Hranz/Project-Daily
Fortran90/Hello.f90
Fortran90/Hello.f90
! Programmers: Kristoffer Larson ! Date: January 25, 2014 ! ! Description: Trying to get minGW to compile program Hello write (*,*) 'Hah! It finally compiled!' end program Hello
mit
FORTRAN
51ea1699316dcbb6471b66ee29dcfc1104d969ac
Add format statement.
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 call getarg(1,buffer) read(buffer,*) strt call getarg(2,buffer) read(buffer,*) stp do x = strt, stp, strt call cpu_time(times) ...
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
0744fa42ec5422be51f021c69d6a3f72862fb384
Add corrected Day 4 finite difference code jam
rouson/UCY-parallel-fortran
src/code-jams/synchronous-derivative-get.f90
src/code-jams/synchronous-derivative-get.f90
program main !! summary: Multimage estimate of a first derivative via central differences use iso_fortran_env, only : error_unit,output_unit implicit none real, allocatable :: f(:)[:],df_dx(:),x(:) !! function, derivative, sampling locations integer, parameter :: num_points=1024 !! number of ...
bsd-3-clause
FORTRAN
b93b125f27f11c5472a8e41983d9e3352de1e77a
Add colons to see if it makes a difference.
ihuston/pyflation,ihuston/pyflation
rk4fortran/rk4fortran.f90
rk4fortran/rk4fortran.f90
subroutine rk4stepks(x, y, h, n, m, yout) ! 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 derivs ...
subroutine rk4stepks(x, y, h, n, m, yout) ! 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 derivs ...
bsd-3-clause
FORTRAN
2dbd6344bed134ece3e6d21257c2d3c16bfde093
Remove to set_maptype_hemisphere
ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw,ForestClaw/forestclaw
applications/advection/2d/hemisphere/setprob.f
applications/advection/2d/hemisphere/setprob.f
subroutine setprob() implicit none double precision kappa,tfinal double precision rot_angle(2), scale logical isflat integer get_map_value logical ishemisphere double precision pi common /compi/ pi pi = 4.d0*atan(1.d0) c # read in data to see whether w...
subroutine setprob() implicit none double precision kappa,tfinal double precision rot_angle(2), scale logical isflat integer get_map_value logical ishemisphere double precision pi common /compi/ pi pi = 4.d0*atan(1.d0) call set_maptype_hemisphere() ...
bsd-2-clause
FORTRAN
ce7f6a2fc68f223c00085b2d091863d84027b790
delete useMLD,useKh
jinbow/Octopus,jinbow/Octopus
src/load_data.f90
src/load_data.f90
subroutine load_data(IPP) use omp_lib use global, only: casename,tt,fn_ids,xyz,tsg,& Npts,parti_mld,DumpClock,& NPP,output_dir,pickup implicit none character(len=128) :: fn character(len=16) :: fn1 ! integer*8 :: iwrite integer*8,intent(in) :: IPP real*4 :: xyz1(Npts,3...
subroutine load_data(IPP) use omp_lib use global, only: casename,tt,fn_ids,xyz,tsg,& Npts,parti_mld,DumpClock,saveTSG,& useMLD,NPP,output_dir,pickup implicit none character(len=128) :: fn character(len=16) :: fn1 ! integer*8 :: iwrite integer*8,inte...
mit
FORTRAN
4cb92a43c0898821ba07f1a74f0b2a462b34f67c
Update default.f90
dkm/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compil...
examples/fortran/default.f90
examples/fortran/default.f90
! Type your code here, or load an example. real function square(x) implicit none real, intent(in) :: x square = x * x return end function square
real function square(x) implicit none real, intent(in) :: x square = x * x return end function square
bsd-2-clause
FORTRAN
4cdd27acb6e7e154fadbac8bd52274994ddd4854
Add eventfrequency.f
mherman09/Hdef,mherman09/Hdef,mherman09/Hdef
eventfrequency.f
eventfrequency.f
PROGRAM eventfrequency C---- C From a list of integer values, calculate the frequency of each value C in the list C---- IMPLICIT none CHARACTER*30 ifile INTEGER NMAX PARAMETER (NMAX=1000) INTEGER ct(NMAX) INTEGER mnval,mxval,dumval,mnsrch,mxsrch,val,diff INTEGER i,istart,...
mit
FORTRAN
3ed5102b3cf8ea7ed34d85d75698ef34584ec935
Update cpu ref
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction1/reference_cpu.f90
test/claw/abstraction1/reference_cpu.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 c = 5.345 DO k = 1 , nz , 1 DO proma = 1 , nproma ...
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 c = 5.345 DO k = 1 , nz , 1 DO proma = 1 , nproma ...
bsd-2-clause
FORTRAN
900c3af95182e6307eb79ccdf9aea5daf25db6bb
Update reference to correct expected result
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction2/reference_cpu.f90
test/claw/abstraction2/reference_cpu.f90
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nx , ny ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : , : ) REAL , INTENT(INOUT) :: q ( : , : , : ) INTEGER :: k REAL :: c REAL :: d ( 1 : nx , 1 : ny ) INTEGER , INTENT(IN) :: nx INTEGER :: i INTEGER , INTENT(IN) ::...
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nx , ny ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : , : ) REAL , INTENT(INOUT) :: q ( : , : , : ) INTEGER :: k REAL :: c REAL :: d ( 1 : nx , 1 : ny ) INTEGER , INTENT(IN) :: nx INTEGER :: i INTEGER , INTENT(IN) ::...
bsd-2-clause
FORTRAN
64cdc4f1c6ecc358302beaf8b92b3a32a7eae620
Fix Gaussian propagation error
kramer314/2d-vd-test
gaussian.f90
gaussian.f90
! 2-Dimensional Gaussian module gaussian use globvars use progvars, only: hbar, m, En, phi, sig_x, sig_y, x0, y0 implicit none private public :: gaussian_init public :: gaussian_cleanup public :: gaussian_xyt ! Precalculated constants real(dp) :: p0_x, p0_y real(dp) :: p0_x_m, p0_y_m real(d...
! 2-Dimensional Gaussian module gaussian use globvars use progvars, only: hbar, m, En, phi, sig_x, sig_y, x0, y0 implicit none private public :: gaussian_init public :: gaussian_cleanup public :: gaussian_xyt ! Precalculated constants real(dp) :: p0_x, p0_y real(dp) :: p0_x_m, p0_y_m real(d...
mit
FORTRAN
b5ade5196f2ca6b5e622cc9262feeef0ade70f88
add fermi equation of state fortran file
bolverk/white_dwarf_nova,bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova,bolverk/white_dwarf_nova
eos_fermi.f90
eos_fermi.f90
subroutine eos_fermi (keyeos,im_gas,im_photons,im_Coulomb & ,rho_in,enr_in,tmp_in,prs_in,ent_in,abar,zbar & ,chem_pot,dpdro,dpde,dedro,dedt,sounds,keyerror) ! use tables ! include 'real8.com' integer, intent(in) :: keyeos integer, intent(in) :: im_gas integer, intent(in) :: im_photons ...
mit
FORTRAN
2ce386ab78f8047f8969c95fe3cdff36c85de67f
Add array ops
rekka/intro-fortran-2016,rekka/intro-fortran-2016
lec8/arrayops.f90
lec8/arrayops.f90
program sort implicit none integer :: i, j integer, parameter :: M = 5 real, dimension(M) :: x real :: s, t ! initialize the array do i=1, M x(i) = i end do ! sum s = 0. do i=1,M s = s + x(i) end do write(*,*)"sum = ",s ! average (mean) writ...
mit
FORTRAN
a02de95b88b4aa60f5d979fa408260bc5def28f1
add project file list
bwitherspoon/core,bwitherspoon/core
riscv.f
riscv.f
../../rtl/opcode.sv ../../rtl/funct3.sv ../../rtl/funct7.sv ../../rtl/riscv.sv ../../rtl/alu.sv ../../rtl/axis.sv ../../rtl/block_ram.sv ../../rtl/core.sv ../../rtl/decode.sv ../../rtl/execute.sv ../../rtl/fetch.sv ../../rtl/fifo.sv ../../rtl/regfile.sv ../../rtl/rs232.sv ../../rtl/uart.sv
isc
FORTRAN
8cbe900c11ada331ba556dfbea11899a8c4ce83a
Use dummy variables
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, ios type(state) :: s real(kind = x_precision) :: delta_S_max, delta_T_max, t real(kind = x_precision), dimension(n_cell) :: prev_S, prev_T, S_crit ! ...
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() ! ...
mit
FORTRAN
a76fc601bb984a8ad9057c614d39a3326627e364
Fix double call to init_parameters
M2-AAIS/BAD
main_curve.f90
main_curve.f90
program black_hole_s_curve use mod_constants use mod_variables use mod_read_parameters use mod_s_curve implicit none integer :: i real(kind = x_precision),dimension(n_cell) :: temperature real(kind = x_precision),dimension(n_cell) ...
program black_hole_s_curve use mod_constants use mod_variables use mod_read_parameters use mod_s_curve implicit none call get_parameters() call init_variable_0() integer :: i real(kind = x_precision),dimension(n_cell) :: temperature ...
mit
FORTRAN
2b7f2a3c38cb325d34eb4c0096f16bfda0a92a29
fix random_data
simomarsili/elss
src/random.f90
src/random.f90
! Copyright (C) 2015-2017, Simone Marsili ! All rights reserved. ! License: BSD 3 clause module random use kinds implicit none private public :: random_initialize public :: random_data interface random_data module procedure random_data_1d module procedure random_data_2d end interface random_d...
! Copyright (C) 2015-2017, Simone Marsili ! All rights reserved. ! License: BSD 3 clause module random use kinds implicit none private public :: random_initialize public :: random_data interface random_data module procedure random_data_1d module procedure random_data_2d end interface random_d...
bsd-3-clause
FORTRAN
de33b97045aac5805640f7af2b3c529ac578f642
Fix test function.
ihuston/pyflation,ihuston/pyflation
rk4fortran/test.f90
rk4fortran/test.f90
! FILE: FIB1.F subroutine fib(A,N) ! ! CALCULATE FIRST N FIBONACCI NUMBERS ! implicit none integer :: N, I REAL*8 :: A(N) DO I=1,N IF (I.EQ.1) THEN A(I) = 0.0D0 ELSEIF (I.EQ.2) THEN A(I) = 1.0D0 ELSE A(I) = A(I-1) + A(I-2) ...
! FILE: FIB1.F subroutine fib(A,N) ! ! CALCULATE FIRST N FIBONACCI NUMBERS ! implicit none integer, intent(in) :: N REAL*8 :: A(N) DO I=1,N IF (I.EQ.1) THEN A(I) = 0.0D0 ELSEIF (I.EQ.2) THEN A(I) = 1.0D0 ELSE A(I) = A(I-1) ...
bsd-3-clause
FORTRAN
223c9a707412b73055b7298603dbf5e08d0a2257
Change arguments.
ihuston/pyflation,ihuston/pyflation
rk4fortran/rk4fortran.f90
rk4fortran/rk4fortran.f90
subroutine rk4stepks(in_matrix, out_vector, n,m,p, in_out_vec) ! 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 integer :: n,m,p real(8) :: in_matrix(n,m) real(8) :: out_vector(n+m-1) real(8) :: in_out_vec(p)...
subroutine rk4stepks(x, 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 integer :: n,m,p real(8) :: in_matrix(n,m) real(8) :: out_vector(n+m-1) real(8) :: in_out_vec(p) !f2py real(8),...
bsd-3-clause
FORTRAN
bc82dba4094aa9928f4fba621009f5f1bbcc68b0
Update reference for extract7 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/extract7/reference.f90
test/loops/extract7/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) target(cpu) CALL clawloop ( v...
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) target(cpu) CALL clawloop ( va...
bsd-2-clause
FORTRAN
4cc12d6b24e86b3da057fb960d0c62d98228f25f
Fix reference
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction/abstraction17/reference_gpu.f90
test/claw/abstraction/abstraction17/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 , INTENT(IN) :: nproma INTEGER :: k REAL :: c INTEGER :: proma !$acc data present(t,q) !$acc parallel !$acc loop gang v...
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nproma ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER , INTENT(IN) :: nproma INTEGER :: k REAL :: c INTEGER :: proma c = 5.345 !$acc data present(t,q) !$acc parallel !$acc...
bsd-2-clause
FORTRAN
ae91a9b30dd8d5c0dff44d1d3db38f6c2ea1833c
Update reference for dependencies5 test case
clementval/claw-compiler,clementval/claw-compiler
test/driver/dependencies5/reference.f90
test/driver/dependencies5/reference.f90
PROGRAM original_code USE imaginary_module END PROGRAM original_code
PROGRAM original_code USE imaginary_module END PROGRAM original_code
bsd-2-clause
FORTRAN
7a8d45e43db0905f4c141c59ffc5280b642d3115
write clock
pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl-lab/RMPCDMD
test/test_particle_system_0.f90
test/test_particle_system_0.f90
program test_particle_system_0 use particle_system use mt19937ar_module use iso_c_binding use tester implicit none type(particle_system_t) :: p integer, parameter :: N = 3000 type(mt19937ar_t), target :: mt type(tester_t) :: test integer :: clock, i double precision :: L(3), x(3) call system_...
program test_particle_system_0 use particle_system use mt19937ar_module use iso_c_binding use tester implicit none type(particle_system_t) :: p integer, parameter :: N = 3000 type(mt19937ar_t), target :: mt type(tester_t) :: test integer :: clock, i double precision :: L(3), x(3) call system_...
bsd-3-clause
FORTRAN
1cd18e5dcffd9f7e2d84fde1321410aa79bc73db
Remove unused variable
Stefan-Endres/scipy,ilayn/scipy,rgommers/scipy,scipy/scipy,perimosocordiae/scipy,Stefan-Endres/scipy,anntzer/scipy,Stefan-Endres/scipy,anntzer/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,scipy/scipy,ilayn/scipy,scipy/scipy,endolith/scipy,ilayn/scipy,ilayn/scipy,vigna/scipy,scipy/scipy,vigna/scipy,rgommers/scipy,a...
scipy/_build_utils/src/wrap_g77_abi_f.f
scipy/_build_utils/src/wrap_g77_abi_f.f
COMPLEX FUNCTION WCDOTC( N, CX, INCX, CY, INCY ) INTEGER INCX, INCY, N COMPLEX CX(*), CY(*) COMPLEX RESULT EXTERNAL ACC_CDOTC_SUB CALL ACC_CDOTC_SUB( N, CX, INCX, CY, INCY, RESULT ) WCDOTC = RESULT END FUNCTION COMPLEX FUNCTION WCDOTU( N, CX, INCX, CY, INCY ) ...
COMPLEX FUNCTION WCDOTC( N, CX, INCX, CY, INCY ) INTEGER INCX, INCY, N COMPLEX CX(*), CY(*) COMPLEX RESULT EXTERNAL ACC_CDOTC_SUB CALL ACC_CDOTC_SUB( N, CX, INCX, CY, INCY, RESULT ) WCDOTC = RESULT END FUNCTION COMPLEX FUNCTION WCDOTU( N, CX, INCX, CY, INCY ) ...
bsd-3-clause
FORTRAN
2d28cd1cdff1f35aacc4299970f6afb46de02f73
use gaussian
M2-AAIS/BAD
mod_distance.f90
mod_distance.f90
module mod_distance use mod_constants use mod_read_parameters use mod_variables implicit none private public :: pre_factor contains function pre_factor(state_in, S_c, dist_crit) implicit none type(state), intent(in) :: state_in real(kind = x_...
module mod_distance use mod_constants use mod_read_parameters use mod_variables implicit none private public :: pre_factor contains function pre_factor(state_in, S_c, dist_crit) implicit none type(state), intent(in) :: state_in real(kind = x_...
mit
FORTRAN
bd65af4da02cec38c8bcf043f306306e26375264
Add missing comma.
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, dimension(0:n-1,0:m-1), intent(i...
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, dimension(0:n-1,0:m-1) intent(in...
bsd-3-clause
FORTRAN
25f2d4b2132f49a95e9d3cacf08b3e46f7bdc0fb
Update reference for array5 test case
clementval/claw-compiler,clementval/claw-compiler
test/openacc/array5/reference.f90
test/openacc/array5/reference.f90
PROGRAM array4_test CALL claw_test ( ) END PROGRAM array4_test SUBROUTINE claw_test ( ) INTEGER , ALLOCATABLE :: vec1 ( : , : ) INTEGER , ALLOCATABLE :: vec2 ( : , : ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 ALLOCATE ( vec1 ( 10 , 20 ) ) ALLOCATE ( vec2 ( 10 , 20 ) ) vec1 ( : , : ) = 0 ve...
PROGRAM array4_test CALL claw_test ( ) END PROGRAM array4_test SUBROUTINE claw_test ( ) INTEGER , ALLOCATABLE :: vec1 ( : , : ) INTEGER , ALLOCATABLE :: vec2 ( : , : ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 ALLOCATE ( vec1 ( 10 , 20 ) ) ALLOCATE ( vec2 ( 10 , 20 ) ) vec1 ( : , : ) = 0 vec2 ...
bsd-2-clause
FORTRAN
3ec1827fec12078028e2ab970da56881159d10b9
Update reference for hoist5 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/hoist5/reference.f90
test/loops/hoist5/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 i = 1 , iend , 1 DO k = 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 i = 1 , iend , 1 DO k = 1 , k...
bsd-2-clause
FORTRAN
769dbf97307191c68d677dc48d7af2d7695fd0ca
Update reference for kcache1 test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/directive/kcache1/reference.f90
test/claw/directive/kcache1/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) :: j...
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
da2fea00046336bdb91c48f1f931eda0aaab8f92
Add reference
clementval/claw-compiler,clementval/claw-compiler
test/driver/ignore2/reference.f90
test/driver/ignore2/reference.f90
PROGRAM testignore !$claw remove PRINT*,'These lines' PRINT*,'are ignored' PRINT*,'by the CLAW compiler' PRINT*,'but kept in the final transformed code' PRINT*,'with the remove directives.' !$claw end remove PRINT*,'These lines' PRINT*,'are ignored' END PROGRAM testignore
bsd-2-clause
FORTRAN
4a16f5cdee1b2bea0183a4492f951e026a488ae1
Add chop.f90.
memmett/minipfasst,memmett/minipfasst,memmett/minipfasst
examples/navier-stokes/chop.f90
examples/navier-stokes/chop.f90
program chop use pfasst use feval use transfer use hooks type(pf_level) :: fine, crse real(pfdp), allocatable :: q_fine(:), q_crse(:) ! build a mock pfasst levels fine%level = 2 fine%ndofs = 2 * 3 * 256**3 call user_setup(fine) crse%level = 1 crse%ndofs = 2 * 3 * 128**3 call user_setup(crse...
bsd-2-clause
FORTRAN
c539d499acb85bf6ebdb3a7c7dfc1c6e719dd615
Reorganize the factor 1/2. into 1/12.
aaronvincent/captngen
Rfunctions/RS1.f
Rfunctions/RS1.f
function RS1(m_N, c0, tau, taup, term, j_chi, coupling_Array) implicit none double precision :: RS1, m_N, c0, j_chi double precision :: coupling_Array(14,2) integer :: tau,taup integer :: term integer :: c, v2, q2, v2q2, v2q4 double precision :: c3, c3p double preci...
function RS1(m_N, c0, tau, taup, term, j_chi, coupling_Array) implicit none double precision :: RS1, m_N, c0, j_chi double precision :: coupling_Array(14,2) integer :: tau,taup integer :: term integer :: c, v2, q2, v2q2, v2q4 double precision :: c3, c3p double preci...
mit
FORTRAN
a629242ca816d60595754ea47230ba8cff32111d
fix Ep: use m_1*m_2 for Ep
cphyc/n-body,cphyc/n-body
physics.f90
physics.f90
module physics use constants private public :: initial_speeds, compute_force, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), intent(in), dimension(:, :) :: r real(kind = xp), intent(out), dimension(:, :) :: v integer :: i real(kind = xp) :: d ! distance to...
module physics use constants private public :: initial_speeds, compute_force, compute_energy, integrate contains subroutine initial_speeds (r, v) real(kind = xp), intent(in), dimension(:, :) :: r real(kind = xp), intent(out), dimension(:, :) :: v integer :: i real(kind = xp) :: d ! distance to...
mit
FORTRAN
866d541d07bfcf1eb83ee86949e5dd2cb86ca766
Add necessary fciqmc data variables.
hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande
src/fciqmc_data.f90
src/fciqmc_data.f90
module fciqmc_data use const implicit none !--- Input data --- ! number of monte carlo cycles/report loop integer :: ncycles ! number of report cycles integer :: nreport ! timestep real(dp) :: tau = 0.10_dp ! shift real(dp) :: shift = 0.0_dp ! Array sizes integer :: walker_length integer :: spawned_walker_length ...
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...
lgpl-2.1
FORTRAN
d8709cb5b2a4415a95ccc303951680aca73e6f59
fix mistake in mod function
cphyc/n-body,cphyc/n-body
main.f90
main.f90
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: t = 0._xp, dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !...
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: t = 0._xp, dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !...
mit
FORTRAN
5bf8908a720e53aef138357a435b07203b194a4a
Add reference
clementval/claw-compiler,clementval/claw-compiler
test/driver/ignore3/reference.f90
test/driver/ignore3/reference.f90
PROGRAM testignore REAL :: real_var_1, & real_var_2, & real_var_3, & real_var_4, & real_var_5, & real_var_6, & real_var_7, & real_var_8, & real_var_9, & real_var_10, & real_var_11, & real_var_12, & ...
bsd-2-clause
FORTRAN
6bb7899c9161743a616a983f9c5a80749cfb2cb0
Add dummy git-.f executable file
mlopes/git-.f
git-.f
git-.f
#!/usr/bin/env python print """ Usage: git .f - Will show a help screen """
mit
FORTRAN
4ac79e8a8c0197ec1779390ca72222448c69fb80
update with new filelist path
olgirard/openmsp430,olgirard/openmsp430,olgirard/openmsp430,olgirard/openmsp430,olgirard/openmsp430
core/sim/rtl_sim/src/submit.f
core/sim/rtl_sim/src/submit.f
//============================================================================= // Copyright (C) 2001 Authors // // This source file may be used and distributed without restriction provided // that this copyright statement is not removed from the file and that any // derivative work contains the original copyright noti...
//============================================================================= // Copyright (C) 2001 Authors // // This source file may be used and distributed without restriction provided // that this copyright statement is not removed from the file and that any // derivative work contains the original copyright noti...
bsd-3-clause
FORTRAN
5510e52164bb02f39880851b9366e6506d851ea6
Update reference
clementval/claw-compiler,clementval/claw-compiler
test/loops/fusion9/reference.f90
test/loops/fusion9/reference.f90
PROGRAM test INTEGER :: i LOGICAL :: ldo ldo = .TRUE. !$claw loop-fusion group(g1) constraint(none) DO i = 1 , 10 , 1 PRINT * ,"Loop body #1" PRINT * ,"Loop body #2" END DO IF ( ldo ) THEN PRINT * ,"I did" END IF END PROGRAM test
PROGRAM test INTEGER :: i LOGICAL :: ldo ldo = .TRUE. IF ( ldo ) THEN !$claw loop-fusion group(g1) constraint(none) DO i = 1 , 10 , 1 PRINT * ,"Loop body #1" PRINT * ,"Loop body #2" END DO END IF END PROGRAM test
bsd-2-clause
FORTRAN
cf32152a063fef5303a0dfc296331ca531c37f7c
Update reference for array1 test case
clementval/claw-compiler,clementval/claw-compiler
test/openacc/array1/reference.f90
test/openacc/array1/reference.f90
PROGRAM vector_loop CALL claw ( ) CALL claw_transformed ( ) END PROGRAM vector_loop SUBROUTINE claw ( ) INTEGER :: j INTEGER :: vec1 ( 0 : 10 ) INTEGER :: claw_induction_0 DO j = 0 , 10 , 1 vec1 ( j ) = j END DO !$acc parallel !$acc loop DO claw_induction_0 = 0 , 10 vec1 ( claw_induction_0 ) = vec1 ( ...
PROGRAM vector_loop CALL claw ( ) CALL claw_transformed ( ) END PROGRAM vector_loop SUBROUTINE claw ( ) INTEGER :: j INTEGER :: vec1 ( 0 : 10 ) INTEGER :: claw_induction_0 DO j = 0 , 10 , 1 vec1 ( j ) = j END DO !$acc parallel !$acc loop DO claw_induction_0 = 0 , 10 vec1 ( claw_induction_0 ) = vec1 ( cla...
bsd-2-clause
FORTRAN
447a88ea3e41dc55102aebc1194fb452e3cfd15c
Update reference for array2 test case
clementval/claw-compiler,clementval/claw-compiler
test/openacc/array2/reference.f90
test/openacc/array2/reference.f90
PROGRAM vector_loop CALL claw ( ) END PROGRAM vector_loop SUBROUTINE claw ( ) INTEGER :: i = 10 INTEGER :: vec1 ( 0 : 10 , 0 : 10 ) INTEGER :: vec2 ( 0 : 10 , 0 : 10 ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 vec1 ( 0 : i , 0 : i ) = 0 vec2 ( 0 : i , 0 : i ) = 100 DO claw_induction_0 = 0 ,...
PROGRAM vector_loop CALL claw ( ) END PROGRAM vector_loop SUBROUTINE claw ( ) INTEGER :: i = 10 INTEGER :: vec1 ( 0 : 10 , 0 : 10 ) INTEGER :: vec2 ( 0 : 10 , 0 : 10 ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 vec1 ( 0 : i , 0 : i ) = 0 vec2 ( 0 : i , 0 : i ) = 100 DO claw_induction_0 = 0 , i ...
bsd-2-clause
FORTRAN
5495ca6f87ea48189ad98a4da9093fb86fafb1c8
Change around where dimension information is given.
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, dimension(0:n-1,0:m-1), intent(i...
bsd-3-clause
FORTRAN
ac8e0dd781644f0d3a27ef4d1a633048944626e2
add the new output
cphyc/n-body,cphyc/n-body
main.f90
main.f90
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: t = 0._xp, dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !...
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: t = 0._xp, dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !...
mit
FORTRAN
8b8ef89e7efe75821907697c90d838de7d46deb2
Add end subroutine statement.
ihuston/pyflation,ihuston/pyflation
rk4fortran/rk4fortran.f90
rk4fortran/rk4fortran.f90
subroutine rk4stepks(x, y, h, n, m, yout) ! 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, intent(in) :: n integer, in...
subroutine rk4stepks(x, y, h, n, m, yout) ! 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, intent(in) :: n integer, in...
bsd-3-clause
FORTRAN
c74b1ba9c5fecfbbdc22b1c27172edb0c395171e
Update reference
clementval/claw-compiler,clementval/claw-compiler
test/driver/external1/reference.f90
test/driver/external1/reference.f90
MODULE mod1 CONTAINS SUBROUTINE sub1 ( ) PRINT * , "Call function" , "sub1" END SUBROUTINE sub1 SUBROUTINE sub2 ( ) PRINT * , "Call function" , "sub2" CALL sub1 ( ) END SUBROUTINE sub2 END MODULE mod1
MODULE mod1 CONTAINS SUBROUTINE sub1 ( ) END SUBROUTINE sub1 SUBROUTINE sub2 ( ) CALL sub1 ( ) PRINT * , "Call function" , "sub1" END SUBROUTINE sub2 END MODULE mod1
bsd-2-clause
FORTRAN
c8fdc334ea3251fbf711db22253fee411684b329
Fix timef.f90
oseledets/tt-fort,oseledets/tt-fort,oseledets/tt-fort
timef.f90
timef.f90
module time_lib use omp_lib !include 'mpif.h' integer,private,save :: time_cold=-1, time_per=0 contains double precision function timef( ) integer :: c,r,m double precision :: t(2) ! timef=etime(t) ! call system_clock(count=c,count_rate=r,count_max=m) ! if(c.lt.cold)then ! time_per=time_per+1 ! write(*,*)'TIME_LIB...
module time_lib use omp_lib !include 'mpif.h' integer,private,save :: time_cold=-1, time_per=0 contains double precision function timef( ) integer :: c,r,m double precision :: t(2) ! timef=etime(t) ! call system_clock(count=c,count_rate=r,count_max=m) ! if(c.lt.cold)then ! time_per=time_per+1 ! write(*,*)'TIME_LIB...
mit
FORTRAN
7bca5891a87b70bf01c164b355bbf353f4aebe8a
Add license header to 'ifcore'.
clementval/claw-compiler,clementval/claw-compiler
modules/intel/ifcore.f90
modules/intel/ifcore.f90
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! ! ! @author skosukhin ! @brief This file is used as a signatutre only module to generate .xmod file. ! These files are needed during a full parse with the OMNI Compiler. module ifcore interface subroutine tra...
! @author skosukhin ! @brief This file is used as a signatutre only module to generate .xmod file. ! These files are needed during a full parse with the OMNI Compiler. module ifcore interface subroutine tracebackqq(string, user_exit_code, status, eptr) character*(*), intent(in), optional :: strin...
bsd-2-clause
FORTRAN
225561eca746bb7d3f09739f4b25acf519aadfc2
Use npoints from constants.f90
cphyc/n-body,cphyc/n-body
main_gen.f90
main_gen.f90
program gen use constants integer(kind=4) :: ios ! I/O test variable integer :: i ! Points iteration variable character(len=50) :: line ! String reading variable real(xp) :: x, y, z real(xp) :: radius real(xp) :: mass mass = 1._xp / npoints open(unit=12, file="in...
program gen use constants integer(kind=4) :: ios ! I/O test variable integer :: i ! Points iteration variable character(len=50) :: line ! String reading variable real(xp) :: x, y, z real(xp) :: radius real(xp) :: mass ! Open file open(unit=11, file="./input_parame...
mit
FORTRAN
487c5e76caaf875c387b13e6280a932be75e1b4e
increase precision of model time output
gutmann/coarray_icar
src/tests/test-ideal.f90
src/tests/test-ideal.f90
program main use iso_fortran_env, only : input_unit use domain_interface, only : domain_t use assertions_interface, only : assert use module_mp_driver, only: microphysics use timer_interface, only: timer_t implicit none if (this_image()==1) print *,"Number of images = ",num_images() block type(do...
program main use iso_fortran_env, only : input_unit use domain_interface, only : domain_t use assertions_interface, only : assert use module_mp_driver, only: microphysics use timer_interface, only: timer_t implicit none if (this_image()==1) print *,"Number of images = ",num_images() block type(do...
mit
FORTRAN
bc9628c19566199352221bf61d8198a4419928b6
Fix test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction2/main.f90
test/claw/abstraction2/main.f90
! Test the CLAW abstraction model with two additional dimensions. PROGRAM test_abstraction2 USE mo_column, ONLY: compute_column REAL, DIMENSION(10,10,60) :: q, t ! fields as declared in the whole model INTEGER :: nx, ny, nz ! Size of array fields INTEGER :: i,j ! Loop indices ...
! Test the CLAW abstraction model with two additional dimensions. PROGRAM test_abstraction2 USE mo_column, ONLY: compute_column REAL, DIMENSION(10,10,60) :: q, t ! fields as declared in the whole model INTEGER :: nx, ny, nz ! Size of array fields INTEGER :: i,j ! Loop indices ...
bsd-2-clause
FORTRAN
ba8f5dc5aa10b15aeccf2371d6165b41e46b0826
Fix typo in teams_subset.f90 test
sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays
src/tests/unit/teams/teams_subset.f90
src/tests/unit/teams/teams_subset.f90
program teams_subset !! author: Nathan Weeks !! !! Regression test for prior potential deadlock in change team/end team use iso_fortran_env, only : team_type use assertions_interface, only : assert implicit none type(team_type) team associate( initial_team_image => this_image()) associate( myteam =>...
program teams_subset !! author: Nathan Weeks !! !! Regression test for prior potential deadlock in change team/end team use iso_fortran_env, only : team_type use assertions_interface, only : assert implicit none type(team_type) team associate( initial_team_image => this_image()) associate( myteam =>...
bsd-3-clause
FORTRAN
9ad4a8df24f606fbce6eb7495dbf0f9327d03ce2
Add this lonely reference update
clementval/claw-compiler,clementval/claw-compiler
test/loops/hoist10/reference.f90
test/loops/hoist10/reference.f90
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i INTEGER :: j INTEGER :: k INTEGER :: iend = 2 INTEGER :: jend = 4 INTEGER :: kend = 2 !$ACC parallel DO i = 0 , iend , 1 DO j = 0 , jend , 1 DO k = 0 , kend , 1 IF ( i == 0 ) THEN PRINT * ,"First...
PROGRAM loop_fusion CALL clawloop ( ) END PROGRAM loop_fusion SUBROUTINE clawloop ( ) INTEGER :: i INTEGER :: j INTEGER :: k INTEGER :: iend = 2 INTEGER :: jend = 4 INTEGER :: kend = 2 !$ACC parallel DO i = 0 , iend , 1 DO j = 0 , jend , 1 DO k = 0 , kend , 1 IF ( i == 0 ) THEN PRINT * ,"First...
bsd-2-clause
FORTRAN
36f46daef73c7e2a7acf956c341dd39ce9af80bf
Fix NAG errors.
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_num_threads integer, external :: omp_get_max_threads integer, external :: omp_get_thread_num num_steps = 1000000...
program pi_openmp implicit none double precision :: step, x, sum, mypi, start, stop, omp_get_wtime integer(kind=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
83ba407c7b8422fe9035a15f0247d2a2452df383
fix bug
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 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...
mit
FORTRAN
82a516f47ae0ccc4828d6b77c8de26beb91af9c5
Update ref with intermediate value
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction2/reference_gpu.f90
test/claw/abstraction2/reference_gpu.f90
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nx , ny ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : , : ) REAL , INTENT(INOUT) :: q ( : , : , : ) INTEGER :: k REAL :: c REAL :: d INTEGER , INTENT(IN) :: nx INTEGER :: i INTEGER , INTENT(IN) :: ny INTEGER :: j ...
MODULE mo_column CONTAINS SUBROUTINE compute_column ( nz , q , t , nx , ny ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : , : ) REAL , INTENT(INOUT) :: q ( : , : , : ) INTEGER :: k REAL :: c INTEGER , INTENT(IN) :: nx INTEGER :: i INTEGER , INTENT(IN) :: ny INTEGER :: j !$acc parall...
bsd-2-clause
FORTRAN
2d504096ec10f1ed603947e9966915fe5b6c1698
include the ROM in the simulations
ptracton/wb_soc_template,ptracton/wb_soc_template,ptracton/wb_soc_template,ptracton/wb_soc_template,ptracton/wb_soc_template,ptracton/wb_soc_template,ptracton/wb_soc_template
simulation/rtl_sim.f
simulation/rtl_sim.f
+libext+.v +define+VERBOSE +define+SIM +define+RTL_SIM +define+SIMULATION +incdir+simulation +incdir+../behvioral/verilog_utils +incdir+../behvioral/wb_common/ +incdir+../rtl/includes/ // // SoC Top Level // ../rtl/soc_template.v // // System Controller for clocks and resets // ../rtl/system_controller/system_...
+libext+.v +define+VERBOSE +define+SIM +define+RTL_SIM +define+SIMULATION +incdir+simulation +incdir+../behvioral/verilog_utils +incdir+../behvioral/wb_common/ +incdir+../rtl/includes/ // // SoC Top Level // ../rtl/soc_template.v // // System Controller for clocks and resets // ../rtl/system_controller/system_...
mit
FORTRAN
9cb26dfdbb51b4dd38ff0ec56a1151697c2d775c
Update reference for force test case
clementval/claw-compiler,clementval/claw-compiler
test/driver/force/reference.f90
test/driver/force/reference.f90
PROGRAM force_dummy PRINT * ,"Dummy program for force option" END PROGRAM force_dummy
PROGRAM force_dummy PRINT * ,"Dummy program for force option" END PROGRAM force_dummy
bsd-2-clause
FORTRAN
38e48468b27557380c4aa068e3eefa20a886cb8e
test with cache works
nworbde/dStar,adeibel/dStar,nworbde/dStar,nworbde/dStar
dStar_atm/test/src/test_atm.f
dStar_atm/test/src/test_atm.f
program test_atm use constants_lib use constants_lib use nucchem_lib use dStar_eos_lib use conductivity_lib use dStar_atm_def use dStar_atm_lib real(dp) :: lgTb,g,Plight,Pb,lgTeff,dlgTeff,lgflux,dlgflux integer :: ierr,i call constants_init('',ierr) call check_okay('constants_init',i...
program test_atm use constants_lib use constants_lib use nucchem_lib use dStar_eos_lib use conductivity_lib use dStar_atm_def use dStar_atm_lib real(dp) :: lgTb,g,Plight,Pb,lgTeff,dlgTeff,lgflux,dlgflux integer :: ierr,i call constants_init('',ierr) call check_okay('constants_init',i...
mit
FORTRAN
244837b29d8ee2cc1e8be3440ce0742020ba82d4
Add license info
clementval/claw-compiler,clementval/claw-compiler
test/openacc/primitive4/original_code.f90
test/openacc/primitive4/original_code.f90
! ! This file is released under terms of BSD license ! See LICENSE file for more information ! program openacc_continuation implicit none integer :: i real, dimension(100) :: a real, dimension(100) :: b !$claw acc data copyin(a) & !$claw acc present(b) !$claw acc parallel !$claw acc loop gang v...
program openacc_continuation implicit none integer :: i real, dimension(100) :: a real, dimension(100) :: b !$claw acc data copyin(a) & !$claw acc present(b) !$claw acc parallel !$claw acc loop gang vector do i=1, 100 a(i) = b(i)*2.0 end do !$claw acc end parallel !$claw acc end dat...
bsd-2-clause
FORTRAN
aaf447732dfe6596949450775db28d64d34ec901
Simplify determination of whether initiator criteria are met.
hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande
src/idmqmc.f90
src/idmqmc.f90
module idmqmc ! Module for methods required for the initiator approximation to DMQMC. ! This contains only core functionality that is *not* in the standard DMQMC ! algorithm. Other specialisations (e.g. annihilation, spawning) are found in ! the relevant source files for those parts of the algorithm. use const impl...
module idmqmc ! Module for methods required for the initiator approximation to DMQMC. ! This contains only core functionality that is *not* in the standard DMQMC ! algorithm. Other specialisations (e.g. annihilation, spawning) are found in ! the relevant source files for those parts of the algorithm. use const impl...
lgpl-2.1
FORTRAN
ff2ad46a2fee4e216954ea373939f1a3cefce551
Improve heat code
rekka/intro-fortran-2016,rekka/intro-fortran-2016
lec8/heat.f90
lec8/heat.f90
program heat implicit none ! introduce a constants M and pi integer, parameter :: M = 10 real, parameter :: pi = 4. * atan(1.) integer :: i, k, N real :: h, tau, x real, dimension(M + 1) :: u, v h = 1. / M tau = h * h / 2. N = 1. / tau ! initialize the initial data and pri...
program heat implicit none integer, parameter :: M = 10 integer :: i, k, N real :: h, tau, pi = 4. * atan(1.) real, dimension(M + 1) :: u, v h = 1. / M tau = h * h / 2. N = 1. / tau ! u_0 do k=1,M + 1 u(k) = sin((k - 1) * h * pi) write(*,*)0., (k - 1) * h, u(k) ...
mit
FORTRAN
6c9f571a7039165ee1a0bb55bca9b6ef28aac46c
Indent code properly
intelesg/PGAS-examples
coarray.f90
coarray.f90
program main implicit none integer, allocatable :: A(:)[:] integer :: B if (num_images()<2) stop 1 ! allocate from the shared heap allocate(A(1)[*]) B = 134 ! store contents of local B at PE 0 into A at PE 1 if (this_image().eq.0) A(1)[1] = B ! global synchronization of execution and data sync all...
program main implicit none integer, allocatable :: A(:)[:] integer :: B if (num_images()<2) stop 1 ! allocate from the shared heap allocate(A(1)[*]) B = 134; ! store contents of local B at PE 0 into A at PE 1 if (this_image().eq.0) A(1)[1] = B ! global s...
mit
FORTRAN
434fe22156cf89361bd1ef583d60df2ab580d787
Create LinearRegression.f90
Hranz/Project-Daily,Hranz/Project-Daily,Hranz/Project-Daily
Fortran90/LinearRegression.f90
Fortran90/LinearRegression.f90
!Programmer:Kristoffer Larson !Description: This was originally given in one of my classes ! and I decided to adjust it so that it would run as a ! Fortran90 program. There are some adjustments that need ! to be made before it's fully functional. DIMENSION X(52), Y(2,50), LITERL(2) DOUBLE PRECISION S...
mit
FORTRAN
0f6604c98972200e60f799792179aec8b06a226f
update cpp
jinbow/Octopus,jinbow/Octopus
src/c_forward_rk4.f90
src/c_forward_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,useKh implicit none real*8, dimension(3) :: x0,x1,uvw integer*8 :: t0,t1,ip,IPP integer*8, intent(in) :: SNPP t0=abs(iswitch-1) t...
subroutine rk4(SNPP) ! integrate in time using RK4 scheme use global, only : tt,Npts,iswitch,xyz,dt,Nx,Ny,Nz,uvwp,dt_file,t_amend,useKh,saveTSG implicit none real*8, dimension(3) :: x0,x1,uvw integer*8 :: t0,t1,ip,IPP integer*8, intent(in) :: SNPP t0=abs(iswitch-1) t1=iswitch do I...
mit
FORTRAN
f58e9895595bd02a045aa7c393e3a7c726dd83fd
Implement initial condition and monitor output
nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura
examples/main.f90
examples/main.f90
program main use finalist_header use finalist implicit none type(Formura_Navigator) :: navi integer :: seedsize, mpi_my_rank integer,allocatable:: seed(:) print *, "Formura test main program." call mpi_init(mpi_err) call Formura_Init(navi, MPI_COMM_WORLD) call random_seed(size=seedsize) ! シード...
program main use finalist_header use finalist implicit none type(Formura_Navigator) :: navi print *, "Formura test main program." call mpi_init(mpi_err) call Formura_Init(navi, MPI_COMM_WORLD) print *, "time step = ", navi%time_step print *, "lower x = ", navi%lower_x print *, "upper x = ", navi%...
mit
FORTRAN
54ba6faa8ebd5c70e5cc65200587e2d0c5729d31
Update reference for array8 test case
clementval/claw-compiler,clementval/claw-compiler
test/openacc/array8/reference.f90
test/openacc/array8/reference.f90
PROGRAM array4_test CALL claw_test ( ) END PROGRAM array4_test SUBROUTINE claw_test ( ) INTEGER :: vec1 ( 0 : 10 ) INTEGER :: vec2 ( 0 : 10 ) INTEGER :: vec3 ( 0 : 10 ) INTEGER :: vec4 ( 0 : 20 ) INTEGER :: vec5 ( 0 : 20 ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 vec1 ( 0 : 10 ) = 0 vec2 ...
PROGRAM array4_test CALL claw_test ( ) END PROGRAM array4_test SUBROUTINE claw_test ( ) INTEGER :: vec1 ( 0 : 10 ) INTEGER :: vec2 ( 0 : 10 ) INTEGER :: vec3 ( 0 : 10 ) INTEGER :: vec4 ( 0 : 20 ) INTEGER :: vec5 ( 0 : 20 ) INTEGER :: claw_induction_0 INTEGER :: claw_induction_1 vec1 ( 0 : 10 ) = 0 vec2 ( 0...
bsd-2-clause
FORTRAN
ffa075603722017011f2e42d90666293543c98b4
Add time and update functions
csdms/bmi-f90
heat/bmi_heat.f90
heat/bmi_heat.f90
module bmi_heat use bmi_params use heat implicit none character (len=BMI_MAXCOMPNAMESTR), target :: & component_name = "The 2D Heat Equation" contains ! Perform startup tasks for the model. function initialize(self, config_file) result(status) type (heat_model), intent (out) :: self chara...
module bmi_heat use bmi_params use heat implicit none character (len=BMI_MAXCOMPNAMESTR), target :: & component_name = "The 2D Heat Equation" contains ! Perform startup tasks for the model. function initialize(self, config_file) result(status) type (heat_model), intent (out) :: self chara...
mit
FORTRAN
75417f2ac53a4f3b5bf20f30363c8f47074e97da
test for grometry
rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP,rongzhen/FPLAPW-KP
test/src/test.f90
test/src/test.f90
program test call inittestoutputfile(50) !file unit 50 ! list test routines here and call testreport(testunit,input,output,passed) ! before leaving the routine call test_readinput() call test_gndstate_init() call test_comparefiles() call test_GEOMETRY() call finalizeoutput(50) end program
program test call inittestoutputfile(50) !file unit 50 ! list test routines here and call testreport(testunit,input,output,passed) ! before leaving the routine call test_readinput() call test_gndstate_init() call test_comparefiles() call finalizeoutput(50) end program
lgpl-2.1
FORTRAN
ffff12a2f9639c0ac83eceec3b9517d146c12d9f
Add read with perturb
MeteoSwiss-APN/serialbox,C2SM-RCM/serialbox,clementval/serialbox,MeteoSwiss-APN/serialbox,clementval/serialbox,clementval/serialbox,C2SM-RCM/serialbox,clementval/serialbox,MeteoSwiss-APN/serialbox,C2SM-RCM/serialbox,C2SM-RCM/serialbox,MeteoSwiss-APN/serialbox
examples/perturbation/m_ser.f90
examples/perturbation/m_ser.f90
MODULE m_ser IMPLICIT NONE CONTAINS SUBROUTINE serialize(a) IMPLICIT NONE REAL(KIND=8), DIMENSION(:,:,:) :: a !$ser init directory='.' prefix='SerialboxTest' !$ser savepoint sp1 !$ser mode write !$ser data ser_a=a END SUBROUTINE serialize SUBROUTINE deserialize(a) IMPLICIT NO...
MODULE m_ser IMPLICIT NONE CONTAINS SUBROUTINE serialize(a) IMPLICIT NONE REAL(KIND=8), DIMENSION(:,:,:) :: a !$ser init directory='.' prefix='SerialboxTest' !$ser savepoint sp1 !$ser mode write !$ser data ser_a=a END SUBROUTINE serialize SUBROUTINE deserialize(a) IMPLICIT NO...
bsd-2-clause
FORTRAN
8e5efd6b739f4a8a5a62a678fa606a80b982eafb
Update ref
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction4/reference_gpu.f90
test/claw/abstraction4/reference_gpu.f90
MODULE mo_column CONTAINS SUBROUTINE compute ( nz , q , t , nproma ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER , INTENT(IN) :: nproma CALL compute_column ( nz , q , t , nproma ) END SUBROUTINE compute SUBROUTINE compute_column ( nz , q , t...
MODULE mo_column CONTAINS SUBROUTINE compute ( nz , q , t , nproma ) INTEGER , INTENT(IN) :: nz REAL , INTENT(INOUT) :: t ( : , : ) REAL , INTENT(INOUT) :: q ( : , : ) INTEGER , INTENT(IN) :: nproma CALL compute_column ( nz , q , t , nproma ) END SUBROUTINE compute SUBROUTINE compute_column ( nz , q , t...
bsd-2-clause
FORTRAN
036c2c170e2ab9a03e02d39a0234d4dd73debd28
Create initialdata.f90
openmichigan/PSNM,openmichigan/PSNM,openmichigan/PSNM,openmichigan/PSNM,openmichigan/PSNM
Brusselator/initialdata.f90
Brusselator/initialdata.f90
SUBROUTINE initialdata(Nx,Ny,Nz,x,y,z,u,v,decomp) !-------------------------------------------------------------------- ! ! ! PURPOSE ! ! This subroutine gets initial data for Brusselator equation ! in 3 dimensions ! u_t = a + u^2v - (b+1)u + Du u_xx ! v_t = bu - u^2v + Dv v_xx ! ! The boundary conditions...
bsd-2-clause
FORTRAN
20f3364ac95b0cbb863e4395e2597b3cd5cb91d3
Add constants
cphyc/n-body,cphyc/n-body
constants.f90
constants.f90
module constants private integer, parameter :: xp = selected_real_kind(8) public :: xp contains end module constants
mit
FORTRAN
bda1bede8ca9b19e91a307cda4c4bcaed1aa695c
Allow possibility that death can create anti-particles.
hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande
src/death.f90
src/death.f90
module death ! Module for performing the death part of the FCIQMC algorithm. use const use fciqmc_data implicit none contains subroutine stochastic_death(cpos) ! Particles will attempt to die with probability ! p_d = tau(K_ii - S) ! where tau is the timestep, S is the shift and K_ii is...
module death ! Module for performing the death part of the FCIQMC algorithm. use const use fciqmc_data implicit none contains subroutine stochastic_death(cpos) ! Particles will attempt to die with probability ! p_d = tau(K_ii - S) ! where tau is the timestep, S is the shift and K_ii is...
lgpl-2.1
FORTRAN
e261d6585fd71c4308900547debc097e19b3074f
fix bug
jinbow/Octopus,jinbow/Octopus
src/load_data.f90
src/load_data.f90
subroutine load_data(IPP) use omp_lib use global, only: casename,tt,fn_ids,xyz,tsg,& Npts,parti_mld,DumpClock,& NPP,output_dir,pickup implicit none character(len=128) :: fn character(len=16) :: fn1 ! integer*8 :: iwrite integer*8,intent(in) :: IPP real*4 :: xyz1(Npts,3...
subroutine load_data(IPP) use omp_lib use global, only: casename,tt,fn_ids,xyz,tsg,& Npts,parti_mld,DumpClock,& NPP,output_dir,pickup implicit none character(len=128) :: fn character(len=16) :: fn1 ! integer*8 :: iwrite integer*8,intent(in) :: IPP real*4 :: xyz1(Npts,3...
mit
FORTRAN
9f7823e47673be55bf4ab82cb803a39d15fc54fe
Reorder declarations
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/ddot/src/ddotsub.f
lib/node_modules/@stdlib/blas/base/ddot/src/ddotsub.f
!> ! @license Apache-2.0 ! ! Copyright (c) 2019 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) 2019 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
26e8f6d0624933467c55376a93ffe9e34748e004
Add time
cphyc/n-body,cphyc/n-body
main.f90
main.f90
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: t = 0._xp, dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !...
program n_body use io_tools use constants use physics implicit none real(kind = xp), dimension(:), allocatable :: m real(kind = xp), dimension(:, :), allocatable :: r, v, a real(kind = xp) :: dt, Ec, Ep, E integer :: iter = 0 integer :: dump_freq = 1 integer :: maxiter = 10000 !-----------...
mit
FORTRAN
b65c3ba33681a45c5ac1e8fb7b8606dcc7e0713a
Update reference for fusion5 test case
clementval/claw-compiler,clementval/claw-compiler
test/loops/fusion5/reference.f90
test/loops/fusion5/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 END DO DO k = 1 , 2 , 1 PRINT * ,"Second loop body:" , i , j END DO END D...
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 END DO DO k = 1 , 2 , 1 PRINT * ,"Second loop body:" , i , j END DO END DO ...
bsd-2-clause
FORTRAN
8bf2b94b21a6d342b73ca50b3e9bb59801d74a1c
Fix indent
cphyc/n-body,cphyc/n-body
io_tools.f90
io_tools.f90
module io_tools use constants implicit none private public :: read_mpos, write_dump, write_dump_headers contains subroutine read_mpos(u, m, r) implicit none integer, intent(in) :: u real(kind = xp), intent(out) :: m(:) real(kind = xp), intent(out) :: r(:,:) integer ::...
module io_tools use constants implicit none private public :: read_mpos, write_dump, write_dump_headers contains subroutine read_mpos(u, m, r) implicit none integer, intent(in) :: u real(kind = xp), intent(out) :: m(:) real(kind = xp), intent(out) :: r(:,:) integer ::...
mit
FORTRAN
c933409fa42a982b67f51986d348f85a19d18fdb
Update reference for kcache2 test case
clementval/claw-compiler,clementval/claw-compiler
test/claw/directive/kcache2/reference.f90
test/claw/directive/kcache2/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) :: j...
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
de1683a1e0b546c1c57c2c84a98579a6042e9399
Correct comment on array bounds of cluster%excitors array.
hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande
src/ccmc_data.f90
src/ccmc_data.f90
module ccmc_data use const, only: i0, p implicit none ! Work around Fortran's lack of arrays of pointers... type bit_string_ptr integer(i0), pointer :: f(:) end type bit_string_ptr ! Information about a cluster of excitors in addition to that stored in ! a det_info variable. type cluster_t ! Pointers to the...
module ccmc_data use const, only: i0, p implicit none ! Work around Fortran's lack of arrays of pointers... type bit_string_ptr integer(i0), pointer :: f(:) end type bit_string_ptr ! Information about a cluster of excitors in addition to that stored in ! a det_info variable. type cluster_t ! Pointers to the...
lgpl-2.1
FORTRAN
3d0f82ff9ae370a121ab7f62a24e016df548cfb3
Fix the sizes of the arrays in 'test'
ziotom78/stripeline,ziotom78/stripeline
src/fortran_routines.f90
src/fortran_routines.f90
subroutine test(a, b) real(kind=8), intent(in), dimension(:) :: a real(kind=8), intent(out), dimension(size(a)) :: b b = a end subroutine test
subroutine test(a, b) real(kind=8), intent(in), dimension(:) :: a real(kind=8), intent(out), dimension(:) :: b b = a end subroutine test
mit
FORTRAN
3e5378db31ac9602775fe4af80919d6640afa36b
remove imem from file list
bwitherspoon/core,bwitherspoon/core
sim/core/core.f
sim/core/core.f
../../rtl/opcode.sv ../../rtl/funct3.sv ../../rtl/funct7.sv ../../rtl/riscv.sv ../../rtl/alu.sv ../../rtl/axis.sv ../../rtl/block_ram.sv ../../rtl/core.sv ../../rtl/execute.sv ../../rtl/fetch.sv ../../rtl/fifo.sv ../../rtl/regfile.sv ../../rtl/rs232.sv ../../rtl/uart.sv
../../rtl/opcode.sv ../../rtl/funct3.sv ../../rtl/funct7.sv ../../rtl/riscv.sv ../../rtl/alu.sv ../../rtl/axis.sv ../../rtl/block_ram.sv ../../rtl/core.sv ../../rtl/execute.sv ../../rtl/fetch.sv ../../rtl/fifo.sv ../../rtl/imem.sv ../../rtl/regfile.sv ../../rtl/rs232.sv ../../rtl/uart.sv
isc
FORTRAN
912768dfa794ea2c4fb4c189aa27c6683620c31b
Fix error and use norm2
cphyc/n-body,cphyc/n-body
physics.f90
physics.f90
module physics use constants private public :: initial_speeds, compute_force contains subroutine initial_speeds (r, npoints, v) real(kind = xp), intent(in), dimension(:, :) :: r integer, intent(in) :: npoints real(kind = xp), intent(out), dimension(:, :) :: v integer :: i real(kind = xp) ...
module physics use constants private public :: initial_speeds, compute_force contains subroutine initial_speeds (r, npoints, v) real(kind = xp), intent(in), dimension(:, :) :: r integer, intent(in) :: npoints real(kind = xp), intent(out), dimension(:, :) :: v integer :: i real(kind = xp) ...
mit
FORTRAN
4104d3f5dd8563bee351cdfa7142f9e98660c4ef
Fix module name
clementval/claw-compiler,clementval/claw-compiler
test/claw/abstraction1/main.f90
test/claw/abstraction1/main.f90
! Test the CLAW abstraction model with one additional dimension. PROGRAM test_abstraction1 USE mo_column, ONLY: compute_column 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 = ...
! Test the CLAW abstraction model with one additional dimension. PROGRAM test_abstraction1 USE column_module, ONLY: compute_column REAL, DIMENSION(20,60) :: q, t ! Fields as declared in the whole model INTEGER :: nproma, nz ! Size of array fields INTEGER :: p ! Loop index nprom...
bsd-2-clause
FORTRAN
1fcd2d9ed50233705d54091137b26b28bc509839
Update cpinterface.f90
CoolProp/CoolProp,CoolProp/CoolProp,henningjp/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,CoolProp/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,DANA-Laboratory/CoolProp,CoolProp/CoolProp,CoolProp/CoolProp,JonWel/CoolProp,dcprojects/CoolProp,DANA-Laboratory/CoolProp,henningjp/CoolProp,h...
wrappers/Fortran/detailed_example/cpinterface.f90
wrappers/Fortran/detailed_example/cpinterface.f90
MODULE CPINTERFACE INTERFACE FUNCTION PropsSI (output, name1, prop1, name2, prop2, fluidname) BIND(C, NAME='PropsSI') use iso_c_binding real(C_DOUBLE) :: PropsSI character(KIND=c_char) :: output(*) character(c_char) :: name1(*) real(C_DOUBLE), VALU...
MODULE CPINTERFACE INTERFACE FUNCTION PropsSI (output, name1, prop1, name2, prop2, fluidname) BIND(C, NAME='PropsSI') use iso_c_binding real(C_DOUBLE) :: PropsSI character(KIND=c_char) :: output(*) character(c_char) :: name1(*) real(C_DOUBLE), VALU...
mit
FORTRAN
69b11c2fed40bd69254009e64c6076fb9b9311c4
Clean up unused code and print grid shape
csdms/bmi-f90
testing/get_value_test.f90
testing/get_value_test.f90
! Test the get_value, get_value_ref, and get_value_at_indices functions. program get_value_test use bmi_heat use testing_helpers implicit none type (heat_model) :: m integer :: s, i, j, grid_id character (len=BMI_MAXVARNAMESTR), pointer :: names(:) integer :: dims(2), locations(3) real, pointer :: z(:...
! Test the get_value, get_value_ref, and get_value_at_indices functions. program get_value_test use bmi_heat use testing_helpers implicit none type (heat_model) :: m integer :: s, i, j, grid_id character (len=BMI_MAXVARNAMESTR), pointer :: names(:) integer :: dims(2), locations(3) real, pointer :: z(:...
mit
FORTRAN
8c7b3995e2b09e2f43270e8d5f73011362573613
add missing file planar_fields.f90
pdebuyl-lab/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl/RMPCDMD
src/planar_fields.f90
src/planar_fields.f90
! This file is part of RMPCDMD ! Copyright (c) 2016-2017 Pierre de Buyl and contributors ! License: BSD 3-clause (see file LICENSE) !> Routines to compute planar concentration and velocity profiles module planar_fields use common use particle_system use cell_system use neighbor_list implicit none private...
bsd-3-clause
FORTRAN
08b4206559c0a10267927a1222d37bdee9fd9473
Update version
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/snrm2/src/snrm2.f
lib/node_modules/@stdlib/blas/base/snrm2/src/snrm2.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