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 |
|---|---|---|---|---|---|---|---|---|
5dd2e9b4c1ea3d01318fd0c5b9f9928a67d9891a | remove unused interface | cwsmith/phasta,matthb2/phasta,SCOREC/phasta,yangf4/phasta,yangf4/phasta,yangf4/phasta,cwsmith/phasta,matthb2/phasta,matthb2/phasta,SCOREC/phasta,PHASTA/phasta,cwsmith/phasta,PHASTA/phasta,PHASTA/phasta,SCOREC/phasta | phSolver/common/streamio.f | phSolver/common/streamio.f | module streamio
use :: iso_c_binding
type(c_ptr) :: geomRestartStream
bind(C, name='geomRestartStream') :: geomRestartStream
type(c_ptr) :: restartStream
interface
subroutine streamio_setup_read(handle, stream)
& bind(C, NAME='streamio_setup_read')
use :: is... | module streamio
use :: iso_c_binding
type(c_ptr) :: geomRestartStream
bind(C, name='geomRestartStream') :: geomRestartStream
type(c_ptr) :: restartStream
interface
subroutine streamio_setup_read(handle, stream)
& bind(C, NAME='streamio_setup_read')
use :: is... | bsd-3-clause | FORTRAN |
5735bfd743d63640430db4f4c7a74cdf717c92a4 | add burn_step.f90 | eladtan/white_dwarf_nova,bolverk/white_dwarf_nova,bolverk/white_dwarf_nova,bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova | burn_step.f90 | burn_step.f90 | module global
real(8),save :: xnorm
end module global
! =================================================================
subroutine burn_step (indxeos,rho,enr,tmp,x,amol,zmol,dedtmp &
,matters,dtime,qreac,nse,tmpsaf_nse,key_done,screen_type)
!
use global
include 'real8.com'
include 'network.com'
dimens... | mit | FORTRAN | |
4a59c92cbf5b985e9108d6793582259bbbc025d0 | Update boundaries for main program | 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
implicit none
! Parameters for s_curve
real(kind = x_precision), parameter :: eps_in = 1.e-8_x_precision ! Precision required for the dichotomy
real(kind = x_precision), parameter :: Tmin = 2.5e-2_x_p... | program black_hole_s_curve
use mod_constants
use mod_read_parameters
use mod_s_curve
implicit none
! Parameters for s_curve
real(kind = x_precision), parameter :: eps_in = 1.e-8_x_precision ! Precision required for the dichotomy
real(kind = x_precision), parameter :: Tmin = 1.e-1_x_pr... | mit | FORTRAN |
ccee9990356261830dea868e4d11009e72b72769 | Update Fortran addVectors example | lcw/occa,lcw/OCCA2,tcew/OCCA2,jkozdon/occa,tcew/OCCA2,libocca/occa,lcw/occa,jkozdon/occa,lcw/OCCA2,tcew/OCCA2,li12242/OCCA2,lcw/occa,tcew/OCCA2,tcew/OCCA,lcw/OCCA2,libocca/occa,jkozdon/occa,libocca/occa,tcew/OCCA,li12242/OCCA2,lcw/occa,jkozdon/occa,lcw/occa,li12242/OCCA2,lcw/OCCA2,jkozdon/occa,jkozdon/occa,tcew/OCCA,tc... | examples/addVectors/main.f90 | examples/addVectors/main.f90 | program main
use occa
implicit none
integer :: alloc_err
integer(4) :: i, entries = 5
integer(4) :: platformID = 0, deviceID = 0, dims
character(len=1024) :: mode = "OpenCL"
real(4), allocatable :: a(:), b(:), ab(:)
type(occaDevice) :: device
type(occaKernel) :: addVectors
type(occaMemory) :: o... | program main
use occa
implicit none
integer(4) :: platformID = 0, deviceID = 0
type(occaDevice) :: device
device = occaGetDevice('OpenCL', platformID, deviceID)
call occaDeviceFree(device)
end program main
| mit | FORTRAN |
f81994061f7b452fd8d95bb8cdcb1dff4cf41c06 | Create dot_product.f90 | mattgodbolt/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compil... | examples/fortran/dot_product.f90 | examples/fortran/dot_product.f90 | ! Compute the dot product of two vectors w/ 4 entries with explicit loops.
! Try changing the target architecture to AVX (-mavx)
! and enabling optimisation (-O3) and compare the results.
real function dot_prod(a, b)
implicit none
real, intent(in), dimension(4) :: a, b
real, dimension(4) :: temp
integer... | bsd-2-clause | FORTRAN | |
875d2cf79545aa365d90c8ac8c057721e0a8500c | Fix to matrix summation. (#95) | william-dawson/NTPoly,william-dawson/NTPoly,william-dawson/NTPoly,william-dawson/NTPoly | Source/Fortran/comm_includes/ReduceAndSumMatrixCleanup.f90 | Source/Fortran/comm_includes/ReduceAndSumMatrixCleanup.f90 | !! Local Data
INTEGER :: II
INTEGER :: temporary_total_values
!! Build Matrix Objects
CALL ConstructEmptyMatrix(temporary_matrix,matrix%rows,matrix%columns)
CALL ConstructEmptyMatrix(sum_matrix,matrix%rows,matrix%columns,&
& zero_in=.TRUE.)
!! Sum
DO II = 1, helper%comm_size
temporary_tota... | !! Local Data
INTEGER :: II
INTEGER :: temporary_total_values
!! Build Matrix Objects
CALL ConstructEmptyMatrix(temporary_matrix,matrix%rows,matrix%columns)
CALL ConstructEmptyMatrix(sum_matrix,matrix%rows,matrix%columns)
!! Sum
DO II = 1, helper%comm_size
temporary_total_values = helper%values_p... | mit | FORTRAN |
51ccd8946e78dc670f0892861a17349f167cfd12 | Comment out basis wrapper, make sure still works | cbcoutinho/learn_dg,cbcoutinho/learn_dg | src/legendre.f90 | src/legendre.f90 | module legendre
use base_types, only: dp
use misc, only: func1, func2
use lib_array, only: linspace, invert_matrix
implicit none
contains
! subroutine basis_1D_ptr(order, basis_num, ptr)
! ! Input/output variables
! integer, intent(in):: order, basis_num
!
! function local_basis_1D(x) result(y... | module legendre
use base_types, only: dp
use misc, only: func1, func2
use lib_array, only: linspace, invert_matrix
implicit none
contains
pure subroutine basis_1D_ptr(order, basis_num, ptr)
! Input/output variables
integer, intent(in):: order, basis_num
function local_basis_1D(x) result(y)
... | bsd-2-clause | FORTRAN |
b4d50687c0a4d8ba7f798ff12ce0fe1c339a55ef | Update ADPRES.f90 | imronuke/ADPRES | src/ADPRES.f90 | src/ADPRES.f90 | PROGRAM main
USE sdata, ONLY: mode, tranw
USE InpOutp, ONLY: ounit, inp_read, bwrst, w_rst, bther
USE nodal, ONLY: forward, adjoint, fixedsrc, init
USE trans, ONLY: rod_eject, trod_eject
USE th, ONLY: cbsearch, cbsearcht
IMPLICIT NONE
REAL :: st, fn
CALL CPU_TIME(st)
CALL inp_read()
CALL Init()
... | PROGRAM main
USE sdata, ONLY: mode, tranw
USE InpOutp, ONLY: ounit, inp_read, bwrst, w_rst, bther
USE nodal, ONLY: forward, adjoint, fixedsrc, init
USE trans, ONLY: rod_eject, trod_eject
USE th, ONLY: cbsearch, cbsearcht
IMPLICIT NONE
REAL :: st, fn
CALL CPU_TIME(st)
CALL inp_read()
CALL Init()
... | mit | FORTRAN |
169bd6c8f628a47878cb24820793525e5e271646 | Remove unused function interface body | sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays,sourceryinstitute/opencoarrays | src/tests/unit/collectives/co_broadcast_allocatable_components.f90 | src/tests/unit/collectives/co_broadcast_allocatable_components.f90 | program main
!! author: Damian Rouson
!!
!! Test co_broadcast with derived-type actual arguments
implicit none
integer, parameter :: sender=1 !! co_broadcast source_image
character(len=*), parameter :: text="text" !! character message data
type dynamic
character(len=:), allocatable :: string
cha... | program main
!! author: Damian Rouson
!!
!! Test co_broadcast with derived-type actual arguments
implicit none
integer, parameter :: sender=1 !! co_broadcast source_image
character(len=*), parameter :: text="text" !! character message data
interface
function f(x) result(y)
real x, y
end... | bsd-3-clause | FORTRAN |
7473421f12412964beccac7ee6355d969c77597b | add a mode to do e,p as inputs | zingale/hydro1d | eos.f90 | eos.f90 | ! a simple gamma-law equation of state
! p = rho e (gamma - 1)
module eos_module
use datatypes_module
use params_module, only: gamma
implicit none
integer, parameter :: eos_input_p = 1
integer, parameter :: eos_input_e = 2
integer, parameter :: eos_input_pe = 3
contains
subroutine eos(input, p, e, rho... | ! a simple gamma-law equation of state
! p = rho e (gamma - 1)
module eos_module
use datatypes_module
use params_module, only: gamma
implicit none
integer, parameter :: eos_input_p = 1
integer, parameter :: eos_input_e = 2
contains
subroutine eos(input, p, e, rho)
integer, intent(in ... | bsd-3-clause | FORTRAN |
d73bcc0ed58b4ad75f0d1f843f41b132aff5b5cf | Correct get_free_utils: was trying to detect used units, not free ones! Oops.. | hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande | lib/utils.f90 | lib/utils.f90 | module utils
! Various utilities and tools...
implicit none
contains
function get_free_unit() result(free_unit)
! Returns:
! The first free file unit above 10 and less than or equal to
! the paramater max_unit (currently set to 200).
use errors, only: stop_all
in... | module utils
! Various utilities and tools...
implicit none
contains
function get_free_unit() result(free_unit)
! Returns:
! The first free file unit above 10 and less than or equal to
! the paramater max_unit (currently set to 200).
use errors, only: stop_all
in... | lgpl-2.1 | FORTRAN |
87e9820940902c99fd162f0799f064acb396304c | Add an example model for BMI-ing | csdms/bmi-f90 | heat/heat.f90 | heat/heat.f90 | ! An example of the heat equation.
module heat
implicit none
! Define the attributes of the model.
type :: heat_model
real :: dt
real :: t
real :: t_end
integer :: n_x
integer :: n_y
real :: dx
real :: dy
real, pointer :: temperature(:,:)
real, pointer :: temperat... | mit | FORTRAN | |
cecb8b290580899d238fd067d9db2e3f585725a4 | Use 256 as grid size | M2-AAIS/BAD | mod_constants.f90 | mod_constants.f90 | ! Module that exposes the integrator that transforms the state_in to thet state_out
module mod_constants
integer, parameter, public :: x_precision = selected_real_kind(15)
integer, parameter, public :: n_cell = 256
integer, parameter, public :: n_iterations = 1000
real(kind = x_precision), parameter, public :... | ! Module that exposes the integrator that transforms the state_in to thet state_out
module mod_constants
integer, parameter, public :: x_precision = selected_real_kind(15)
integer, parameter, public :: n_cell = 100
integer, parameter, public :: n_iterations = 1000
real(kind = x_precision), parameter, public :... | mit | FORTRAN |
a51ce74a96ea02b17c65462dcc0cf1794d495504 | Update FC_STD.f | aaroncnb/comic_dust,aaroncnb/comic_dust,aaroncnb/comic_dust,aaroncnb/comic_dust | FC_STD.f | FC_STD.f | PROGRAM FLUX_CALIBRATION
IMPLICIT REAL*8(A-G,O-Z)
IMPLICIT INTEGER*4(H-N)
REAL*8 SADU(320),WL(320),WLT(652),FL(652)
REAL*8 FLCAL(320),FNCAL(320),FLC(320)
OPEN(1,FILE="STD_NL.ADU",STATUS="OLD")
C Change this file name according to the target being observed...
C HD... | PROGRAM FLUX_CALIBRATION
IMPLICIT REAL*8(A-G,O-Z)
IMPLICIT INTEGER*4(H-N)
REAL*8 SADU(320),WL(320),WLT(692),FL(692)
REAL*8 FLCAL(320),FNCAL(320),FLC(320)
OPEN(1,FILE="STD_NL.ADU",STATUS="OLD")
C Change this file name according to the target being observed...
C HD... | apache-2.0 | FORTRAN |
6211d148e0cf1095e7a289852606edc4bf67fd29 | add the constant : sun mass | M2-AAIS/BAD | mod_constants.f90 | mod_constants.f90 | ! Module that exposes the integrator that transforms the state_in to thet state_out
module mod_constants
integer, parameter, public :: x_precision = selected_real_kind(15)
integer, parameter, public :: n_cell = 256
integer, parameter, public :: n_iterations = 1000
real(kind = x_precision), parameter, public :... | ! Module that exposes the integrator that transforms the state_in to thet state_out
module mod_constants
integer, parameter, public :: x_precision = selected_real_kind(15)
integer, parameter, public :: n_cell = 256
integer, parameter, public :: n_iterations = 1000
real(kind = x_precision), parameter, public :... | mit | FORTRAN |
49c196368df1314a58b849a9190cf4b791543f82 | Add named arg | clementval/claw-compiler,clementval/claw-compiler | test/claw/sca/sca43/main.f90 | test/claw/sca/sca43/main.f90 | !
! This file is released under terms of BSD license
! See LICENSE file for more information
!
! Test the CLAW abstraction model with one additional dimension.
!
PROGRAM test_abstraction1
USE mo_column, ONLY: compute_point
INTEGER, PARAMETER :: nproma = 20
REAL, DIMENSION(nproma) :: q, t, w ! Fields as declared... | !
! This file is released under terms of BSD license
! See LICENSE file for more information
!
! Test the CLAW abstraction model with one additional dimension.
!
PROGRAM test_abstraction1
USE mo_column, ONLY: compute_point
INTEGER, PARAMETER :: nproma = 20
REAL, DIMENSION(nproma) :: q, t, w ! Fields as declared... | bsd-2-clause | FORTRAN |
29dd15ca7722540f7f87d4066527e8403bbdfc74 | add rho_prs.f90 | eladtan/white_dwarf_nova,bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,bolverk/white_dwarf_nova | rho_prs.f90 | rho_prs.f90 | subroutine rho_prs
use tables
include 'real8.com'
! -------------------------------------------------------
do 100 it=1,itmax
!
call rho_tmp
!
dt = (prs-prs0)/dpdtmp
tmp = min(max(tmp - dt,0.9*tmp),1.1*tmp)
! print *,' it,dt,t ',it,dt,tmp
if(abs(prs-prs0).lt.diuk*prs0) then
... | mit | FORTRAN | |
f330cc34fea3adfa0c7a074991fb26bedde37879 | Clarify comments in new teams unit 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 |
18ecd028f4bec71caf10bc9b34b5a72909994338 | Update reference for interchange1 test case | clementval/claw-compiler,clementval/claw-compiler | test/loops/interchange1/reference.f90 | test/loops/interchange1/reference.f90 | PROGRAM loop_interchange
CALL clawloop ( )
END PROGRAM loop_interchange
SUBROUTINE clawloop ( )
INTEGER :: i
INTEGER :: j
DO j = 1 , 2 , 1
DO i = 1 , 10 , 1
PRINT * ,"Iteration " , i ,"," , j
END DO
END DO
END SUBROUTINE clawloop
| PROGRAM loop_interchange
CALL clawloop ( )
END PROGRAM loop_interchange
SUBROUTINE clawloop ( )
INTEGER :: i
INTEGER :: j
DO j = 1 , 2 , 1
DO i = 1 , 10 , 1
PRINT * ,"Iteration " , i ,"," , j
END DO
END DO
END SUBROUTINE clawloop
| bsd-2-clause | FORTRAN |
22224871e42060491c1426d77f814c66f24182e7 | implement scsystem solver | tflovorn/scsbz,tflovorn/scsbz | src/scsystem.f90 | src/scsystem.f90 | module scsystem
use double
use environment
use scsolve
implicit none
type :: SelfConsistentSystem
real(kind=DP), dimension(:), allocatable :: tolerances
type(SelfConsistentEq), dimension(:), allocatable :: equations
contains
procedure :: isSolved => scSystemIsSolved
... | module scsystem
use double
use environment
use scsolve
implicit none
type :: SelfConsistentSystem
real(kind=DP), dimension(:), allocatable :: tolerance
type(SelfConsistentEq), dimension(:), allocatable :: equations
end type
contains
function scSystemSolve(system, env) result(... | mit | FORTRAN |
95e25cf63ca64b28ac52cb506c645d6f335f2a5b | Add data re-arranger subroutine. | jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib | utils/dataSetter/dataarrange.f90 | utils/dataSetter/dataarrange.f90 | ! dataarrange.f90
! Arranges data in parallel output binary dump.
module dataarrange
contains
subroutine arrangeData(res, dataIn, coordCentres)
use segment, only: whichSegment
implicit none
double precision, intent (in), dimension (:, :, :) :: dataIn
double precision, intent (out), dimension (:, :, :) :: r... | apache-2.0 | FORTRAN | |
b00785c2eae51fad2e5ab8cd4551d19aa239845b | Add initialize and finalize BMI methods | 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
function get_component_name(self, name) result(status)
type (heat_model), intent (in) :: self
character (len=*), pointer, intent (out) :: na... | mit | FORTRAN |
ac9146d7ec0cb6e767c42f7fe6467109a62beee1 | Add data region | 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 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 = ... | bsd-2-clause | FORTRAN |
7e04d8d2ae39125d0b725d66d65bb08743ac608e | Fix shell syntax error on Mac | Praqma/staci,Praqma/staci | functions/databaseOperations.f | functions/databaseOperations.f | #! /bin/bash
source $STACI_HOME/functions/tools.f
node_prefix=$(getProperty "clusterNodePrefix")
cluster=$(getProperty "createCluster")
provider_type=$(getProperty "provider_type")
function exec_mysql_sql(){
local sqlcmd=$1
local appdb=$2
mysql_pwd=$(getProperty "mysql_root_pass")
# Point to cluster, if... | #! /bin/bash
source $STACI_HOME/functions/tools.f
node_prefix=$(getProperty "clusterNodePrefix")
cluster=$(getProperty "createCluster")
provider_type=$(getProperty "provider_type")
function exec_mysql_sql(){
local sqlcmd=$1
local appdb=$2
mysql_pwd=$(getProperty "mysql_root_pass")
# Point to cluster, if... | mit | FORTRAN |
807be0f1d06e419d1ca2e6d7a536a809a10109b1 | Update reference for hoist3 test case | clementval/claw-compiler,clementval/claw-compiler | test/loops/hoist3/reference.f90 | test/loops/hoist3/reference.f90 | PROGRAM loop_fusion
CALL clawloop ( )
END PROGRAM loop_fusion
SUBROUTINE clawloop ( )
INTEGER :: i
INTEGER :: j
INTEGER :: iend = 2
INTEGER :: jend = 4
INTEGER :: kend = 2
INTEGER :: k
DO i = 0 , iend , 1
!$claw loop-hoist(j,k) target(cpu)
IF ( i == 0 ) THEN
PRINT * ,"First iteration of i" , i ,"/" ,... | PROGRAM loop_fusion
CALL clawloop ( )
END PROGRAM loop_fusion
SUBROUTINE clawloop ( )
INTEGER :: i
INTEGER :: j
INTEGER :: iend = 2
INTEGER :: jend = 4
INTEGER :: kend = 2
INTEGER :: k
DO i = 0 , iend , 1
!$claw loop-hoist(j,k) target(cpu)
IF ( i == 0 ) THEN
PRINT * ,"First iteration of i" , i ,"/" , j ... | bsd-2-clause | FORTRAN |
3fbf2ed286b0f9f6cb95bab36c5829aa1de7c006 | Fix to matrix transpose for dense matrix. (#93) | william-dawson/NTPoly,william-dawson/NTPoly,william-dawson/NTPoly,william-dawson/NTPoly | Source/Fortran/dense_includes/TransposeMatrix.f90 | Source/Fortran/dense_includes/TransposeMatrix.f90 | CALL ConstructEmptyMatrix(matAT, matA%columns, matA%rows)
matAT%data = TRANSPOSE(matA%data)
| CALL ConstructEmptyMatrix(matAT, matA%rows, matA%columns)
matAT%data = TRANSPOSE(matA%data)
| mit | FORTRAN |
2909565b859bd31c1b5e0e52f299a01cfbbffd2a | Change default model to PREM | anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran,anowacki/seismo-fortran | progs/src/km2GPa.f90 | progs/src/km2GPa.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.
!========================================... | !===============================================================================
! 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.
!========================================... | mit | FORTRAN |
fa3e4d1ebd14e34e2d9f9e0dc53780f09c646768 | fix 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
| ../../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 |
2bd9ae20506684e5cf7c53f7fb44a80604217b3b | initialize the discontinuity capturing module for interface | 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------------------------------------------------------------------------------
inplicit none
c
c
contains
... | bsd-3-clause | FORTRAN | |
0532f8436fd48f0a65b7dd5a7fd49caf1f48850e | Update reference for ignore3 test case | 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, &
... | 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 |
d71c461e026d94c1e99685c838b127f2ee3a70eb | Fix timestep again | 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 |
5e4f0bdb383d51fb86793141fd9ea5947fb95a3b | Update reference for macro2 test case | clementval/claw-compiler,clementval/claw-compiler | test/driver/macro2/reference.f90 | test/driver/macro2/reference.f90 | PROGRAM testmacro
PRINT * ,"These lines"
PRINT * ,"are not ignored"
PRINT * ,"by the preprocessor."
END PROGRAM testmacro
| PROGRAM testmacro
PRINT * ,"These lines"
PRINT * ,"are not ignored"
PRINT * ,"by the preprocessor."
END PROGRAM testmacro
| bsd-2-clause | FORTRAN |
fa997be32acb58b7bd326822150393e89a8b339d | Add reference for test hoist11 | clementval/claw-compiler,clementval/claw-compiler | test/loops/hoist11/reference.f90 | test/loops/hoist11/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
DO i = 0 , iend , 1
DO j = 0 , jend , 1
DO k = 0 , kend , 1
IF ( i == 0 ) THEN
PRINT * ,"First iteration of i... | bsd-2-clause | FORTRAN | |
d5cd9a8c8b8990cf8746215d28fb6634dbe347d1 | Add service program to decide a subscript (unsafe). | jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib | utils/common/segment.f90 | utils/common/segment.f90 | ! Segment.f90
! Operations about segments.
module segment
contains
elemental function whichSegment(x, xLower,xUpper, iLower,iUpper) result (i)
implicit none
double presicion, intent (in) :: x - xLower, xUpper
integer, intent (in) :: iLower, iUpper
integer :: i
i = iLower + floor(0.5 + (x-xLower) / (xUpper... | apache-2.0 | FORTRAN | |
c5079481647fcdec3c4852e746e6a592fd3c928b | Update IRF tests | csdms/bmi-f90 | testing/irf_test.f90 | testing/irf_test.f90 | program irf_test
use bmi_heat
implicit none
type (heat_model) :: m
integer :: s
real :: time, time0, time1
integer :: i
character (len=BMI_MAXUNITSSTR) :: time_units
character (len=BMI_MAXVARNAMESTR), pointer :: names(:)
character (len=BMI_MAXCOMPNAMESTR), pointer :: name
write (*,"(a)",advance="... | program test
use bmif
implicit none
type (heat_model) :: m
integer :: rank
integer, allocatable, dimension (:) :: shape
real, allocatable, dimension (:) :: spacing
real, allocatable, dimension (:) :: origin
integer :: i
real :: time
character (len=22), ... | mit | FORTRAN |
aed264e2335915904945d6b46622aaa61123e559 | Update reference for array7 test case | clementval/claw-compiler,clementval/claw-compiler | test/openacc/array7/reference.f90 | test/openacc/array7/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 :: j1
INTEGER :: j3
vec1 ( 0 : i , 0 : i ) = 0
vec2 ( 0 : i , 0 : i ) = 100
DO j1 = 0 , i
DO j3 = 0 , i
vec1 ( j1 , j3 ) = v... | 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 :: j1
INTEGER :: j3
vec1 ( 0 : i , 0 : i ) = 0
vec2 ( 0 : i , 0 : i ) = 100
DO j1 = 0 , i
DO j3 = 0 , i
vec1 ( j1 , j3 ) = vec2... | bsd-2-clause | FORTRAN |
d7aa07c21fb6e40510910c5243762ba5f62c54fd | add stub for theodorsen | goriccardo/bem2dlib | theo.f90 | theo.f90 |
subroutine theodorsen(pbem, E)
implicit none
complex(kind=8), intent(in) :: pbem
complex(kind=8), dimension(2,2), intent(out) :: E
real(kind=8) :: k
complex(kind=8) :: c, p
real(kind=8), parameter :: PI = 4.D0*datan(1.D0)
complex(kind=8), parameter :: j = dcmplx(0.D0,1.D0)
... | bsd-3-clause | FORTRAN | |
2b45c3853e5e7c3f1c0f4e062d64f1afa100c09e | test write fortran version of sayaendou program | nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura | attic/sayaendou/main.f90 | attic/sayaendou/main.f90 | program main
double precision, dimension(50,50,50) u,v
call init()
print *, u(25,25,25), v(25,25,25)
contains
subroutine init()
do x = 1, 50
do y = 1, 50
do z = 1, 50
u(x,y,z) = 1.0
v(x,y,z) = 0.0
end do
end do
end do
end subroutine proceed... | mit | FORTRAN | |
9126f25815e8ec0739fc5d81934a93a23c79d80c | Update original code | clementval/claw-compiler,clementval/claw-compiler | test/loops/fusion9/original_code.f90 | test/loops/fusion9/original_code.f90 | program test
integer :: i
logical :: ldo
ldo = .true.
!$claw loop-fusion group(g1) constraint(none)
do i = 1, 10
print*,'Loop body #1'
end do
if ( ldo ) then
print*,'I did'
end if
!$claw loop-fusion group(g1) constraint(none)
do i = 1, 10
print*,'Loop body #2'
end do
end program t... | program test
integer :: i
logical :: ldo
ldo = .true.
if ( ldo ) then
!$claw loop-fusion group(g1) constraint(none)
do i = 1, 10
print*,'Loop body #1'
end do
end if
!$claw loop-fusion group(g1) constraint(none)
do i = 1, 10
print*,'Loop body #2'
end do
end program test
| bsd-2-clause | FORTRAN |
96c8cb9b54148015c78ac7b7766fda38aa873060 | Update reference for remove4 test case | clementval/claw-compiler,clementval/claw-compiler | test/utilities/remove4/reference.f90 | test/utilities/remove4/reference.f90 | PROGRAM remove4
CALL dummy ( )
END PROGRAM remove4
SUBROUTINE dummy ( )
INTEGER :: k
INTEGER :: i
INTEGER :: z
INTEGER :: kend = 5
INTEGER :: iend = 10
DO k = 1 , kend , 1
DO i = 1 , iend , 1
END DO
!$claw remove target(cpu)
z = k + 1
z = z ** ( 2 )
!$claw end remove
END DO
END SUBROUTINE dummy
| PROGRAM remove4
CALL dummy ( )
END PROGRAM remove4
SUBROUTINE dummy ( )
INTEGER :: k
INTEGER :: i
INTEGER :: z
INTEGER :: kend = 5
INTEGER :: iend = 10
DO k = 1 , kend , 1
DO i = 1 , iend , 1
END DO
!$claw remove target(cpu)
z = k + 1
z = z ** ( 2 )
!$claw end remove
END DO
END SUBROUTINE dummy
| bsd-2-clause | FORTRAN |
d3c11f70cfdadd2c5739794a728e5f884d939ec9 | Use selected_real_kind instead of the iso_fortran_env constants | raullaasner/gadfit | src/gadf_constants.f90 | src/gadf_constants.f90 | !!****m* GADfit/gadf_constants
!!
!! COPYRIGHT
!!
!! Copyright (C) 2014-2017 Raul Laasner
!! This file is distributed under the terms of the GNU General Public
!! License, see LICENSE in the root directory of the present
!! distribution or http://gnu.org/copyleft/gpl.txt .
!!
!! SOURCE
#include <config.h>
module gadf_... | !!****m* GADfit/gadf_constants
!!
!! COPYRIGHT
!!
!! Copyright (C) 2014-2017 Raul Laasner
!! This file is distributed under the terms of the GNU General Public
!! License, see LICENSE in the root directory of the present
!! distribution or http://gnu.org/copyleft/gpl.txt .
!!
!! SOURCE
#include <config.h>
module gadf_... | apache-2.0 | FORTRAN |
f9acfc00497869388cb03bb21170e4233f520d66 | remove use only | jinbow/Octopus,jinbow/Octopus | src/allocate_vars.f90 | src/allocate_vars.f90 | subroutine allocate_parti()
#include "cpp_options.h"
use global
!, only :xyz, xyz0, uvwp, dxyz_fac, tsg,&
! pi2f,pj2f,pk2f,pi2c,pj2c,pk2c,&
! dif, djf, dkf, dic, djc, dkc, parti_mld,&
! NPP,Npts,fn_ids,grad
print*, "----------------------------------------------"
prin... | subroutine allocate_parti()
#include "cpp_options.h"
use global, only :xyz, xyz0, uvwp, dxyz_fac, tsg,&
pi2f,pj2f,pk2f,pi2c,pj2c,pk2c,&
dif, djf, dkf, dic, djc, dkc, parti_mld,&
NPP,Npts,fn_ids,grad
print*, "----------------------------------------------"
print*, "... | mit | FORTRAN |
a0caf6d26bde6b79adcb292d80d615d04a991bd1 | Remove "big" num_steps. | 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_openacc_pi_dir/pi.f90 | fortran_openacc_pi_dir/pi.f90 | program pi
use ISO_FORTRAN_ENV
use openacc
implicit none
double precision :: step, x, s, mypi, start, stop, omp_get_wtime
integer(kind=int64) :: num_steps, i
character(len=:), allocatable :: a
integer :: argl
integer(kind=acc_device_kind) :: devices
... | program pi
use ISO_FORTRAN_ENV
use openacc
implicit none
double precision :: step, x, s, mypi, start, stop, omp_get_wtime
integer(kind=int64) :: num_steps, i
character(len=:), allocatable :: a
integer :: argl
integer(kind=acc_device_kind) :: devices
... | cc0-1.0 | FORTRAN |
698a7ffeab18cc52f82614139bd112700f9b51ad | Add god.f. | sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-opensource,sergev/vak-o... | languages/fortran/god.f | languages/fortran/god.f | c
c God is real!
c Unless declared integer.
c
god = 42
print *, god
end
| apache-2.0 | FORTRAN | |
8f73b7603694364ccc046f20d8ef5638f0d7acaa | Add example for iso_c_binding | clementval/claw-compiler,clementval/claw-compiler | test/fortran/c_binding/original.f90 | test/fortran/c_binding/original.f90 | use iso_c_binding
implicit none
character(len=30) :: str,str2
interface
! Ignore the return value of strncpy -> subroutine
! "restrict" is always assumed if we do not pass a pointer
subroutine strncpy(dest, src, n) bind(C)
import
character(kind=c_char), intent(out) :: dest(*)
character(kind=c_char)... | bsd-2-clause | FORTRAN | |
9251fe2e6d63b8e3b349777e9ceb6289c968ba43 | Update reference for omp-primitive1 test case | clementval/claw-compiler,clementval/claw-compiler | test/openmp/primitive1/reference.f90 | test/openmp/primitive1/reference.f90 | PROGRAM test_primitive
INTEGER :: i
!$claw acc parallel
DO i = 1 , 10 , 1
PRINT * , i
END DO
!$claw acc end parallel
!$omp do
DO i = 1 , 10 , 1
PRINT * , i
END DO
!$omp end do
END PROGRAM test_primitive
| PROGRAM test_primitive
INTEGER :: i
!$claw acc parallel
DO i = 1 , 10 , 1
PRINT * , i
END DO
!$claw acc end parallel
!$omp do
DO i = 1 , 10 , 1
PRINT * , i
END DO
!$omp end do
END PROGRAM test_primitive
| bsd-2-clause | FORTRAN |
dab95c0f17a878d718daccfa243985b3ac4f41b1 | rename epsilon constant. | ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande | const.f90 | const.f90 | module const
! Module containing precision of types and data.
implicit none
integer, parameter :: dp = kind(0.0d0)
real(dp), parameter :: pi = 3.1415926535897931_dp
real(dp), parameter :: depsilon = 1.e-8
end module const
| module const
! Module containing precision of types and data.
implicit none
integer, parameter :: dp = kind(0.0d0)
real(dp), parameter :: pi = 3.1415926535897931_dp
real(dp), parameter :: error_epsilon = 1.e-8
end module const
| lgpl-2.1 | FORTRAN |
641534261f62401c0814254d967cc9323e520450 | Move type specification | 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 |
fee1ef4e8889f3ae8fade1d9fce2d5c46a23cd8a | Add x variable. | ihuston/pyflation,ihuston/pyflation | rk4fortran/rk4fortran.f90 | rk4fortran/rk4fortran.f90 | subroutine rk4stepks(x, y, 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) :: x
real(8) :: y(n,m)
real(8) :: out_vector(n+m-1)
real(8) :: in_out_vec(... | subroutine rk4stepks(y, 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) :: y(n,m)
real(8) :: out_vector(n+m-1)
real(8) :: in_out_vec(p)
!f2py real(8),... | bsd-3-clause | FORTRAN |
f94a9715df4ccf3193893a9fa063a952dae8e4bc | add the constants module | zingale/hydro1d | constants.f90 | constants.f90 | module constants_module
use datatypes_module
implicit none
! physical constants
real (kind=dp_t), parameter :: m_amu = 1.66053886e-24_dp_t ! g
real (kind=dp_t), parameter :: k = 1.3806503e-16_dp_t ! erg / K
real (kind=dp_t), parameter :: G_newton = 6.67259e-8_dp_t ! cm^3 / g / s^2
end module... | bsd-3-clause | FORTRAN | |
3faae532ff0b8b75c82d4c5d2d0f19faea7eb11d | fix bug | jinbow/Octopus,jinbow/Octopus | src/dump_data.f90 | src/dump_data.f90 | subroutine dump_data(IPP)
#include "cpp_options.h"
!output particle data
use omp_lib
use global, only: casename,tt,fn_ids,xyz,tsg,&
Npts,parti_mld,DumpClock,&
NPP,output_dir,grad
implicit none
character(len=128) :: fn
character(len=16) :: fn1
integer*8 :: iwrite
integer*8,int... | subroutine dump_data(IPP)
#include "cpp_options.h"
!output particle data
use omp_lib
use global, only: casename,tt,fn_ids,xyz,tsg,&
Npts,parti_mld,DumpClock,saveTSG,&
NPP,output_dir,grad
implicit none
character(len=128) :: fn
character(len=16) :: fn1
integer*8 :: iwrite
integ... | mit | FORTRAN |
19e641572f5d64c93a2cf277f828657a05d84db0 | increase the number of characters in the filename # | 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=6) ::... | 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 |
817bc93d12f73955734f1ac6d3d9d5fb66497d2b | Solve the secret of sizeof | nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura,nushio3/formura | attic/fortran-mpi-test/main.f90 | attic/fortran-mpi-test/main.f90 | program main
use lib
implicit none
include "mpif.h"
integer :: size_var
call mpi_init(mpi_err)
do i = 1, 42
Iriguchi%U(i) = i*(i+1)
end do
print *, "sizeof deguchi = ", sizeof(Deguchi)
size_var = sizeof(Deguchi)
call mpi_irecv(Deguchi , size_var, MPI_BYTE, 0, 0, mpi_comm_world, req_recv ... | program main
use lib
implicit none
include "mpif.h"
call mpi_init(mpi_err)
do i = 1, 42
Iriguchi%U(i) = i*(i+1)
end do
call mpi_irecv(Deguchi , sizeof(Deguchi), MPI_BYTE, 0, 0, mpi_comm_world, req_recv ,mpi_err)
call mpi_isend(Iriguchi, sizeof(Iriguchi), MPI_BYTE, 0, 0, mpi_comm_world, req_se... | mit | FORTRAN |
af1a11a25028883ad23f8b3fb7465ae787cc2198 | Update wrong reference | clementval/claw-compiler,clementval/claw-compiler | test/openacc/continuation/reference.f90 | test/openacc/continuation/reference.f90 | PROGRAM openacc_cont
!$ACC parallel
!$ACC end parallel
!$acc data present ( pti,pdp,pclc,pwv,psw,pqlwc,pqiwc,pduco2,pduo3 ) present &
!$acc ( paeq1,paeq2,paeq3,paeq4,paeq5,psmu0,palso ) present ( &
!$acc palth,pskyview,pfcor ) present ( papre &
!$acc ... | PROGRAM openacc_cont
!$ACC parallel
!$ACC end parallel
!$acc ACC data present ( pti,pdp,pclc,pwv,psw,pqlwc,pqiwc,pduco2,pduo3 ) present &
!$acc ( paeq1,paeq2,paeq3,paeq4,paeq5,psmu0,palso ) present ( &
!$acc palth,pskyview,pfcor ) present ( papre &
!$acc ... | bsd-2-clause | FORTRAN |
1e8bf0e1318eb8e06e7bb35d3c637326d19536a0 | Fix error in f95 string handling functions. Argument order was wrong for call to achar, which resulted in strings not being translated from C to fortran properly. | 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 |
f4e1eb12af682b6da0eb1b98039f48b461f0e8b9 | copy and paste error. | ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande | hubbard.f90 | hubbard.f90 | module hubbard
use kpoints
use system
implicit none
type(kpoint), allocatable :: basis_fns(:)
contains
subroutine init_basis_fns()
! Produce the basis functions. The number of basis functions is
! equal to the number of sites in the crystal cell (ie the number
! of k-points used to sample the FBZ ... | module hubbard
use kpoints
use system
implicit none
type(kpoint), allocatable :: basis_fns(:)
contains
subroutine init_basis_fns()
! Produce the basis functions. The number of basis functions is
! equal to the number of sites in the crystal cell (ie the number
! of k-points used to sample the FBZ ... | lgpl-2.1 | FORTRAN |
54c061d2df791a36912589b1df82368ad6287afc | Update reference for dependencies4 test case | clementval/claw-compiler,clementval/claw-compiler | test/driver/dependencies4/reference.f90 | test/driver/dependencies4/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 |
3ef42f06147e7b11fba5e935043bf3605de27649 | Update reference after changes in ACC handling in omni-compiler | 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
REAL :: array2d_1 ( 1 : 100 )
REAL :: array2d_2
REAL :: arr... | 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 |
172322e44080b3207ab4caa889642cbc0a579aa7 | add rho_enr.f90 | bolverk/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova,eladtan/white_dwarf_nova,bolverk/white_dwarf_nova,bolverk/white_dwarf_nova | rho_enr.f90 | rho_enr.f90 | subroutine rho_enr
use tables
include 'real8.com'
! -------------------------------------------------------
t0=tmp0
knisa=0
keyerr=0
10 continue
knisa=knisa+1
tmp=t0
tmp_cold=tmp_min*2.d0
tmpmin=tmp_cold
tmpmax=tmp_max
!
do 100 it=1,itmax
!
call rho_tmp
if(knisa.gt.1) write(*,11) it,tmp,... | mit | FORTRAN | |
733b4d4bdf5bd35ec812a7142fa936549f3883ef | update intergrate.f95 | aschampion/gt-cse6730-pmds | integrate.f95 | integrate.f95 | SUBROUTINE Integrate
IMPLICIT NONE
INCLUDE 'globals.inc'
! Integrate The Equations Of Motion And calculate The Total Impulse
INTEGER :: I, estep, step
DOUBLE PRECISION :: Xxn(Natom),Yyn(Natom),Zzn(Natom),scale
!cccccccccccccccccccccccccccccccccccccccccccccccccc
! S... | mit | FORTRAN | |
bca9154711eafb57d3b8b8c40ea4a113a4d7625c | Remove dimensions from 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
real :: hh... | bsd-3-clause | FORTRAN |
1c2c2c2254611ea6ace6ec8f2be641599cd2f624 | remove 2D b' matrix | jmfranck/pyspecdata,jmfranck/pyspecdata,jmfranck/pyspecdata,jmfranck/pyspecdata | nnls/nnls_regularized_loop.f90 | nnls/nnls_regularized_loop.f90 | subroutine nnls_regularized_loop(a,m,n,q,b,x,rnorm,w,zz,idx, &
mode,maxiter,lambda)
!f2py threadsafe
integer, intent(in):: m, n, q, maxiter
! we no longer need to specify a or b as intent copy,
! since we are going to manually copy them
double preci... | subroutine nnls_regularized_loop(a,m,n,q,b,x,rnorm,w,zz,idx, &
mode,maxiter,lambda)
!f2py threadsafe
integer, intent(in):: m, n, q, maxiter
! we no longer need to specify a or b as intent copy,
! since we are going to manually copy them
double preci... | bsd-3-clause | FORTRAN |
1cf0f52b9db3cf0ae1277149f92f51fd3a3ceb36 | Format string in outputs | 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 |
9fe84ab137eb439ccd2fd57c965b32f6e97297df | Add read_wf to overwrite_with_cas | scemama/quantum_package,scemama/quantum_package,scemama/quantum_package | plugins/Psiref_CAS/overwrite_with_cas.irp.f | plugins/Psiref_CAS/overwrite_with_cas.irp.f | program overwrite_w_cas
read_wf = .True.
TOUCH read_wf
call extract_ref
end
| program overwrite_w_cas
call extract_ref
end
| agpl-3.0 | FORTRAN |
5b22def4fe8e91806c50a7d23b8472f782639a0b | Adjust how best fit value is dealt with | drewleonard42/CoronaTemps | fitsmodule.f90 | fitsmodule.f90 | SUBROUTINE calc_fits(images, model, parvals, n_vals, n_wlens, x, y, n_pars, results)
IMPLICIT NONE
INTEGER, INTENT(IN) :: n_vals, n_wlens, x, y, n_pars
REAL, DIMENSION(n_vals, n_pars), INTENT(IN) :: parvals
REAL, DIMENSION(n_vals, n_wlens), INTENT(IN) :: model
REAL, DIMENSION(n_wlens, x, y), INTENT(IN) :: images
REAL,... | SUBROUTINE calc_fits(images, model, parvals, n_vals, n_wlens, x, y, n_pars, results)
IMPLICIT NONE
INTEGER, INTENT(IN) :: n_vals, n_wlens, x, y, n_pars
REAL, DIMENSION(n_vals, n_pars), INTENT(IN) :: parvals
REAL, DIMENSION(n_vals, n_wlens), INTENT(IN) :: model
REAL, DIMENSION(n_wlens, x, y), INTENT(IN) :: images
REAL,... | bsd-2-clause | FORTRAN |
79c29c560906a045d3c523dfcca2a4be026d66be | Include rotation in the mapping | 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.
open(7,file='setprob.data')
... | 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.
open(7,file='setprob.data')
... | bsd-2-clause | FORTRAN |
6eca13b0fa6727a5606d4356c9dd9031106ad5ca | add process_dx subroutine | 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
private
public :: get_parameters, process_dx
contains
subroutine get_parameters (initial_param)
!read parameter in the input file : ./input_parameter.dat
implicit none
!function parameters
... | ! Module that reads the parameter out of a file
module mod_read_parameters
private
public :: get_parameters
contains
subroutine get_parameters (initial_param)
use mod_constants
!read parameter in the input file : ./input_parameter.dat
implicit none
!function parameters
type(p... | mit | FORTRAN |
f1d265a16ffa2b66b68b657b7f6e7630d669129a | Add some more f2py statements to rk4fortran. | 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 |
4a48eda0f3426c527bec38cdbfaa969f900deda9 | Update pi-serial.f90 | PawseySupercomputing/Develop-with-OpenMP,PawseySupercomputing/Develop-with-OpenMP | Workbench/Exercise2/ftn/pi-serial.f90 | Workbench/Exercise2/ftn/pi-serial.f90 | !/*******************************************************
! * Calculating Pi with using midpoint rectangle method:*
! * integral 4.0/(1+x^2) dx = pi *
! * or *
! * summation (for i=0 to n) 4.0/(1+x_i^2) *
! * where x_i = (i + 1/2) * delta x *
! * OpenMP Version 1 *
! ****... | !/*******************************************************
! * Calculating Pi with using midpoint rectangle method:*
! * integral 4.0/(1+x^2) dx = pi *
! * or *
! * summation (for i=0 to n) 4.0/(1+x_i^2) *
! * where x_i = (i + 1/2) * delta x *
! * OpenMP Version 1 *
! ****... | cc0-1.0 | FORTRAN |
59a9b18be084dc57e93a39ee0cc8110ad143b425 | Add reference for ignore1 | clementval/claw-compiler,clementval/claw-compiler | test/driver/ignore1/reference.f90 | test/driver/ignore1/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
END PROGRAM testignore
| bsd-2-clause | FORTRAN | |
595cce25c4c93ac76fd242cf3c23a5cffd40a757 | Update reference for extract5 test case | clementval/claw-compiler,clementval/claw-compiler | test/loops/extract5/reference.f90 | test/loops/extract5/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
!$acc loop seq
DO i = istart , iend , 1
CALL clawloop_extracted0 ( value1 ( 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
!$acc loop seq
DO i = istart , iend , 1
CALL clawloop_extracted0 ( value1 ( i ) , ... | bsd-2-clause | FORTRAN |
2f1764fa689b0717f35252cce88a5b51982dbe22 | Move icopy.f to selci_icopy.f to avoid name conflicts in ar. | rangsimanketkaew/NWChem | src/selci/selci_icopy.f | src/selci/selci_icopy.f | subroutine selci_icopy(n,x,ix,y,iy)
implicit integer (a-z)
*
* $Id: selci_icopy.f,v 1.1 2003-04-07 21:58:55 windus Exp $
*
dimension x(*),y(*)
c
ixx = 1
iyy = 1
do 10 i = 1,n
y(iyy) = x(ixx)
ixx = ixx + ix
iyy = iyy + iy
10 continue
c
return
... | mit | FORTRAN | |
239901a3087c1b53f93f9c4e0efc21d694015aa6 | Update reference for kcache5 test case | clementval/claw-compiler,clementval/claw-compiler | test/claw/directive/kcache5/reference.f90 | test/claw/directive/kcache5/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 |
5aea5511883fc79d4502a5f8f4ef409bbacadb2d | Work in progress - leaving for AMS | cbcoutinho/learn_dg,cbcoutinho/learn_dg | src/main.f90 | src/main.f90 | program main
use base_types, only: dp
use misc, only: myfun, func1, func2
use integration, only: integrate
use lib_array, only: linspace
use legendre, only: basis_1D, vandermonde
implicit none
procedure(func1), pointer :: ptr1 => null()
procedure(func2), pointer :: ptr2 => null()
integer:: order = 6... | program main
use base_types, only: dp
use misc, only: myfun, func1, func2
use integration, only: integrate
use lib_array, only: linspace
use legendre, only: basis_1D, vandermonde
implicit none
procedure(func1), pointer :: ptr1 => null()
procedure(func2), pointer :: ptr2 => null()
integer:: order = 2... | bsd-2-clause | FORTRAN |
ad3173bafffa64c30a60e254d98b1b93bb69d48e | Make assert give a backtrace. | hande-qmc/hande,hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande | src/test.f90 | src/test.f90 | module tests
! Handy boilerplate module to use for testing and debugging code.
! Some rules:
! * Do commit test procedures which are generic or frequently useful.
! * Don't commit (at least not permanently) code that tests development work.
! If you do commit such code, please tidy up and remove it once it stops be... | module tests
! Handy boilerplate module to use for testing and debugging code.
! Some rules:
! * Do commit test procedures which are generic or frequently useful.
! * Don't commit (at least not permanently) code that tests development work.
! If you do commit such code, please tidy up and remove it once it stops be... | lgpl-2.1 | FORTRAN |
7ed2553f133de73a42b487e96cc1d7c499f358d5 | Add homework 1 solution | rouson/UCY-parallel-fortran | src/solutions/homework1/test-my-message.f90 | src/solutions/homework1/test-my-message.f90 | program main
!! Unit test for my_message
implicit none
character(len=128) :: input
associate(me=>this_image())
!! Define a local alias for the image number
broadcast_preface: block
use iso_fortran_env, only : input_unit,output_unit
integer, parameter :: preconnected=1
if (preconnec... | bsd-3-clause | FORTRAN | |
e310d31f6a1dee9ba4cf50289269ad2996d24bc4 | Update reference with inner most + intermediate | 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
INTEGER , INTENT(IN) :: nx
INTEGER :: i
INTEGER , INTENT(IN) :: ny
INTEGER :: j
c = 5.345
... | bsd-2-clause | FORTRAN |
90f43025498afa155c70033f480076d7a94023ac | add test | GeoscienceAustralia/ptha,GeoscienceAustralia/ptha,GeoscienceAustralia/ptha,GeoscienceAustralia/ptha | propagation/SWALS/tests/unit_tests/unit_tests.f90 | propagation/SWALS/tests/unit_tests/unit_tests.f90 | program unit_tests
!! Call all the unit test subroutines
use read_raster_mod, only: test_read_raster1
use spherical_mod, only: test_spherical_mod
use points_in_poly_mod, only: test_points_in_poly_mod
use which_mod, only: test_which
use burn_into_grid_mod, only: test_burn_into_grid_mod
use p... | program unit_tests
!! Call all the unit test subroutines
use read_raster_mod, only: test_read_raster1
use spherical_mod, only: test_spherical_mod
use points_in_poly_mod, only: test_points_in_poly_mod
use which_mod, only: test_which
use burn_into_grid_mod, only: test_burn_into_grid_mod
use p... | bsd-3-clause | FORTRAN |
7a19f5a2cab9c2ebfea10b797de4367543c2e733 | Fix recent regression that no longer preserved trailing blanks in Fortran strings. | 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 |
8b7e9ba85a38462b4167f30634072e3ff3b81735 | 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 |
ac706dffe85e8a7792496aaff81afea3d4e85f3e | Add simple Fortran solution | valexey/bubble_test,valexey/bubble_test | fortran/main.f90 | fortran/main.f90 | program main
implicit none
integer, parameter :: n = 40000
integer, dimension(n) :: arr
integer :: i, j, tmp
do i = 1, size(arr)
arr(i) = n - i
end do
call print_all(arr)
print *, "---"
do i = 1, size(arr)
do j = 1, size(arr) - i
tmp = arr... | mit | FORTRAN | |
5805f8ef1d762e179ac775c0b43f830232d54022 | Correct probability for stochastic death with negative populations. | hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande | src/death.f90 | src/death.f90 | module death
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
! K_ii = < D_i | H | D_i > - E_0
! In:
... | module death
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
! K_ii = < D_i | H | D_i > - E_0
! In:
... | lgpl-2.1 | FORTRAN |
c946a3eb3731e7ccb3f14816204d481adbe5aa7e | Fix comments. | 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(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... | 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 |
6357db8ac8bdcf5e7715e671abd2474ec805f5dc | fix dx setting and remove count variable | laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl-lab/RMPCDMD,pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD | src/common.f90 | src/common.f90 | module common
implicit none
private
public :: rel_pos
public :: profile_t
type profile_t
double precision, allocatable :: data(:)
integer, allocatable :: count(:)
double precision :: xmin
double precision :: dx
integer :: n
contains
generic, public :: init => profile_init
... | module common
implicit none
private
public :: rel_pos
public :: profile_t
type profile_t
double precision, allocatable :: data(:)
integer, allocatable :: count(:)
double precision :: xmin
double precision :: dx
integer :: n
contains
generic, public :: init => profile_init
... | bsd-3-clause | FORTRAN |
bb39c757b3cba9f78efedb94181410a6679d6252 | increase accuracy of cell_system testing | pdebuyl-lab/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD | test/test_cell_system_0.f90 | test/test_cell_system_0.f90 | program try_all
use cell_system
use hilbert
implicit none
type(cell_system_t) :: solvent_cells
integer, parameter :: N = 2000
double precision, target :: pos1(3, N), pos2(3, N)
double precision, pointer :: pos(:,:), pos_old(:,:), pos_pointer(:,:)
logical :: success
integer :: i, L(3), seed_size, c... | program try_all
use cell_system
use hilbert
implicit none
type(cell_system_t) :: solvent_cells
integer, parameter :: N = 2000
double precision, target :: pos1(3, N), pos2(3, N)
double precision, pointer :: pos(:,:), pos_old(:,:), pos_pointer(:,:)
logical :: success
integer :: i, L(3), seed_size, c... | bsd-3-clause | FORTRAN |
1a2b13e93f5d339ccad8f7569d6f0bbc1dc5db52 | Replace '—' by more regular '-' | M2-AAIS/BAD | mod_output.f90 | mod_output.f90 | ! Module that provides a way to dump the state
module mod_output
use mod_constants
use mod_read_parameters
implicit none
private
public :: snapshot
contains
! Save a snapshot of state (s) at iteration, time
subroutine snapshot (s, iteration, time, unit)
use mod_variables
implicit none... | ! Module that provides a way to dump the state
module mod_output
use mod_constants
use mod_read_parameters
implicit none
private
public :: snapshot
contains
! Save a snapshot of state (s) at iteration, time
subroutine snapshot (s, iteration, time, unit)
use mod_variables
implicit none... | mit | FORTRAN |
8d65dfe2dc0298e47f7474f312829e1da777f914 | Fix comment. | 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(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... | 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 |
d4c79533a312572f78ff40fc1c6ce1a6b6210f1e | Add a small complication to test t0255 | thender/ppp,maddenp/ppp,maddenp/ppp,maddenp/ppp,thender/ppp,thender/ppp | tests/t0255/t.f90 | tests/t0255/t.f90 | program t
100 format ( 12 H Hello &
&World)
200 format (2hA )
300 format (2h B)
400 format (a,1HC)
500 format (a,1HD,a)
600 format (1HE,a)
write (*,100)
write (*,200)
write (*,300)
write (*,400) '_'
write (*,500) '_','_'
write (*,600) '_'
end program t
| program t
100 format ( 12 H Hello World)
200 format (2hA )
300 format (2h B)
400 format (a,1HC)
500 format (a,1HD,a)
600 format (1HE,a)
write (*,100)
write (*,200)
write (*,300)
write (*,400) '_'
write (*,500) '_','_'
write (*,600) '_'
end program t
| apache-2.0 | FORTRAN |
c4923facc08a905a888f5183e5d2d498c5645fa0 | Make some noise when converting | SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack | source/splitSingletrack/splitSingletrack.f90 | source/splitSingletrack/splitSingletrack.f90 | program splitSingletrack
! ---------------------------------------------------------------
! Read a singletrackfile.dat containing multiple particle pairs,
! and split it into one file per pair.
! K. Sjobak, October 2019
! ---------------------------------------------------------------
use mod_splitSingletr... | program splitSingletrack
! ---------------------------------------------------------------
! Read a singletrackfile.dat containing multiple particle pairs,
! and split it into one file per pair.
! K. Sjobak, October 2019
! ---------------------------------------------------------------
use mod_splitSingletr... | lgpl-2.1 | FORTRAN |
019126299b6e939fc3c93bac5afa041db4d3d66f | Fix to solenoid | SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack,SixTrack/SixTrack | source/include/kickvso1.f90 | source/include/kickvso1.f90 | ! start include/kickvso1.f90
!
temptr(1)=xv(1,j)
temptr(2)=yv(1,j)
temptr(3)=xv(2,j)
temptr(4)=yv(2,j)
temptr(6)=(ejv(j)-e0)/(e0f*(e0f/e0))
onedp = (one+dpsv(j))/mtc(j)
fppsig = ( one + ((e0f/e0) **2)*temptr(6) ) / onedp
! Set up C,S, q_temp,r_temp,Z
costh_temp = cos_mb(strackz(i)/onedp)
sinth_temp = sin_mb(... | ! start include/kickvso1.f90
onedp = (one+dpsv(j))/mtc(j)
fppsig = ( one + ((e0f/e0) **2)*temptr(6) ) / onedp
!
temptr(1)=xv(1,j)
temptr(2)=yv(1,j)
temptr(3)=xv(2,j)
temptr(4)=yv(2,j)
temptr(6)=(ejv(j)-e0)/(e0f*(e0f/e0))
! Set up C,S, q_temp,r_temp,Z
costh_temp = cos_mb(strackz(i)/onedp)
sinth_temp = sin_mb(... | lgpl-2.1 | FORTRAN |
ed977defac41705f2f545e82df4554dce69f86f1 | Write good format for the ezfio mo_classif | scemama/quantum_package,scemama/quantum_package,scemama/quantum_package | src/Dets/save_for_qmcchem.irp.f | src/Dets/save_for_qmcchem.irp.f | subroutine save_dets_qmcchem
use bitmasks
implicit none
character :: c(mo_tot_num)
integer :: i,k
integer, allocatable :: occ(:,:,:), occ_tmp(:,:)
!DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: occ, occ_tmp
read_wf = .True.
TOUCH read_wf
call ezfio_set_determinants_det_num(N_det)
call ezfio_set_determinants_det_coe... | subroutine save_dets_qmcchem
use bitmasks
implicit none
character :: c(mo_tot_num)
integer :: i,k
integer, allocatable :: occ(:,:,:), occ_tmp(:,:)
!DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: occ, occ_tmp
read_wf = .True.
TOUCH read_wf
call ezfio_set_determinants_det_num(N_det)
call ezfio_set_determinants_det_coe... | agpl-3.0 | FORTRAN |
a18fe24fb31d95456af1e658b15359d094213000 | update argo variables in global.f90 | jinbow/Octopus,jinbow/Octopus | src/global.f90 | src/global.f90 | module global
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+1,0:Ny-1,-1:Nz) :: hFacC
... | module global
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+1,0:Ny-1,-1:Nz) :: hFacC
... | mit | FORTRAN |
53d7a898bf4bfdba7da75e60896a777e6c235e9c | Add computations of div in sph coord | jungerstein/plasmaPhyLib,jungerstein/plasmaPhyLib | calculus/sphericalcalculus.f90 | calculus/sphericalcalculus.f90 | ! vim : tw=72 ts=2 sw=2
! sphericalcalculus.f90
! Implements for 3D vector calculus 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 sphericalcalculus
use sphericalvec3d
interface operator (.div.)
... | apache-2.0 | FORTRAN | |
73438d7ff6a179f556b54eeb0e4efe7429df959e | Add reference | clementval/claw-compiler,clementval/claw-compiler | test/loops/hoist6/reference.f90 | test/loops/hoist6/reference.f90 | PROGRAM loop_hoist6
CALL clawloop ( )
END PROGRAM loop_hoist6
SUBROUTINE clawloop ( )
INTEGER :: i
INTEGER :: j
INTEGER :: iend = 2
INTEGER :: jend = 4
INTEGER :: kend = 2
INTEGER :: k
DO i = 0 , iend , 1
DO j = 0 , jend , 1
DO k = 0 , kend , 1
IF ( i == 0 ) THEN
PRINT * ,"First iteration of... | bsd-2-clause | FORTRAN | |
d9240828200c133eb3ae647d0fe4c132ec46d6cc | increase dble prec tolerance of the test | pdebuyl-lab/RMPCDMD,laurensdeprez/RMPCDMD,pdebuyl/RMPCDMD,pdebuyl/RMPCDMD,laurensdeprez/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 |
5805d55cd02710626ad58b6a7da42551b1073212 | Change name of in_matrix to y. | ihuston/pyflation,ihuston/pyflation | rk4fortran/rk4fortran.f90 | rk4fortran/rk4fortran.f90 | subroutine rk4stepks(y, 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) :: y(n,m)
real(8) :: out_vector(n+m-1)
real(8) :: in_out_vec(p)
!f2py real(8),... | 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)... | bsd-3-clause | FORTRAN |
8b567f7bb1eb83978f6d0326d4b374c2df0b2573 | Change dimensions of n. | 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(in... | 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 |
69dd8df2ef592bd1a4cc2cda4b630e852c9fd335 | change name of timestep variable to dt | M2-AAIS/BAD | mod_timestep.f90 | mod_timestep.f90 | ! Module that gives the timestep
module mod_timestep
private
public :: timestep
contains
subroutine timestep (state_in, timestep)
use mod_constants
implicit none
type (state), intent(in), dimension(:) :: state_in
real(kind = x_precision) :: dt
end subroutine t... | ! Module that gives the timestep
module mod_timestep
private
public :: timestep
contains
subroutine timestep (state_in, timestep)
use mod_constants
implicit none
type (state), intent(in), dimension(:) :: state_in
real(kind = x_precision) :: timestep
end subr... | mit | FORTRAN |
ccbd589ee5bbf5273a8609cef5ea600a4ca69b7f | Update reference | clementval/claw-compiler,clementval/claw-compiler | test/fortran/class1/reference.f90 | test/fortran/class1/reference.f90 | MODULE class_Circle
IMPLICIT NONE
PRIVATE
PUBLIC :: Circle, circle_area, circle_print
REAL :: pi = 3.1415926535897931d0 ! Class-wide private constant
TYPE Circle
real :: radius
END TYPE Circle
CONTAINS
FUNCTION circle_area(this) RESULT(area)
TYPE(Circle), INTENT(IN) :: this
REAL :: area
... | MODULE class_circle
REAL , PRIVATE :: pi = 3.1415926535897931d0
TYPE , PUBLIC :: circle
REAL :: radius
END TYPE circle
CONTAINS
FUNCTION circle_area ( this ) RESULT(area)
REAL :: area
TYPE(circle) , INTENT(IN) :: this
area = pi * this % radius ** ( 2 )
END FUNCTION circle_area
SUBROUTINE circle_print (... | bsd-2-clause | FORTRAN |
414ac5d297e890f4729acc9a8f7d4d88b49ccb3c | Fix dt_nu expression. | M2-AAIS/BAD | mod_timestep.f90 | mod_timestep.f90 | ! Module that gives the timestep
module mod_timestep
use mod_constants
use mod_read_parameters
implicit none
private
public :: timestep_T, timestep_nu
contains
subroutine timestep_T(state_in, dt_T)
implicit none
type(state), intent(in) :: state_in
real(x_precision), intent(out) :: d... | ! Module that gives the timestep
module mod_timestep
use mod_constants
use mod_read_parameters
implicit none
private
public :: timestep_T, timestep_nu
contains
subroutine timestep_T(state_in, dt_T)
implicit none
type(state), intent(in) :: state_in
real(x_precision), intent(out) :: d... | mit | FORTRAN |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.