Skip to content

Commit

Permalink
Merge commit 'aa9c0a0e32928a2e40c7476e99c53d008f10d3c4'
Browse files Browse the repository at this point in the history
  • Loading branch information
maul1609 committed Jun 15, 2023
2 parents 793dd9c + aa9c0a0 commit a186e89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions sce/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RANLIB = ranlib
OBJ = o
FFLAGS = $(OPT) $(DEBUG) -o
FFLAGS2 = $(DEBUG) -O3 -o
VAR_TYPE = 1 # 0 single, 1 double



Expand Down
4 changes: 2 additions & 2 deletions sce/osnf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RANLIB = ranlib
OBJ = o
FFLAGS = $(OPT) $(DEBUG) -o
FFLAGS2 = $(DEBUG) -O3 -o

VAR_TYPE = 1 # 0 single, 1 double


main.exe : osnf_lib.a main.$(OBJ)
Expand All @@ -41,7 +41,7 @@ osnf_lib.a : numerics.$(OBJ) zeroin.$(OBJ) sfmin.$(OBJ) \
svode.$(OBJ) slinpk.$(OBJ) vode.$(OBJ) dlinpk.$(OBJ) vode_integrate.$(OBJ) \
erfinv.$(OBJ) tridiagonal.$(OBJ) hygfx.$(OBJ) random.$(OBJ)
numerics_type.$(OBJ) : numerics_type.f90
$(FOR) numerics_type.f90 $(FFLAGS)numerics_type.$(OBJ)
$(FOR) numerics_type.f90 -cpp -DVAR_TYPE=$(VAR_TYPE) $(FFLAGS)numerics_type.$(OBJ)
numerics.$(OBJ) : numerics.f90 numerics_type.$(OBJ)
$(FOR) numerics.f90 $(FFLAGS)numerics.$(OBJ)
zeroin.$(OBJ) : zeroin.f
Expand Down
8 changes: 7 additions & 1 deletion sce/osnf/numerics_type.f90
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ module numerics_type
integer, parameter :: i1b = selected_int_kind(2)
integer, parameter :: sp = kind(1.0)
integer, parameter :: dp = kind(1.0d0)
#if VAR_TYPE == 1
integer, parameter :: wp = kind(1.0d0)
integer, parameter :: wpc = kind((1.0d0,1.0d0))
#endif
#if VAR_TYPE == 0
integer, parameter :: wp = kind(1.0)
integer, parameter :: wpc = kind((1.0,1.0))
#endif
integer, parameter :: spc = kind((1.0,1.0))
integer, parameter :: dpc = kind((1.0d0,1.0d0))
integer, parameter :: wpc = kind((1.0d0,1.0d0))
real(wp), parameter :: pi=3.141592653589793238462643383279502884197_wp
end module numerics_type

0 comments on commit a186e89

Please sign in to comment.