Skip to content

Commit

Permalink
adding support for OMP
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-boon committed May 2, 2023
1 parent b7b99a2 commit 8accd5f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ MDBG_FFLAGS=""
ifeq ($(F90),ifort)
INCLUDES+=-I/opt/intel/include
DEBUG_FFLAGS=-g -traceback
OPT_FFLAGS=-O3
OPT_FFLAGS=-O3 -qopenmp
FFLAGS=-fPIC -warn all -module ${moddir} -static-intel -mp1 -stand f08 -warn nounused $(DEFINES) $(INCLUDES)
ifeq ($(WITH_CHECKS),true)
FFLAGS+=-check all -check noarg_temp_created
Expand Down
12 changes: 8 additions & 4 deletions src/aed_pathogens.F90
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,15 @@ SUBROUTINE aed_pathogens_load_params(data, dbase, count, list)
data%id_growth(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_g', 'orgs/m3/day', 'growth')
data%id_sunlight(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_l', 'orgs/m3/day', 'sunlight')
data%id_mortality(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_m', 'orgs/m3/day', 'mortality')
data%id_pth_f_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_f_set', 'orgs/m3/d', 'alive sedimentation')
data%id_pth_d_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_d_set', 'orgs/m3/d', 'dead sedimentation')
data%id_pth_f_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_f_set', &
'orgs/m3/d', 'alive sedimentation')
data%id_pth_d_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_d_set', &
'orgs/m3/d', 'dead sedimentation')
IF (data%pathogens(i)%coef_sett_fa > zero_) THEN
data%id_pth_a_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_a_set', 'orgs/m3/d', 'attached sedimentation')
data%id_attachment(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_att', 'orgs/m3/d', 'attachment rate')
data%id_pth_a_sed(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_a_set', &
'orgs/m3/d', 'attached sedimentation')
data%id_attachment(i) = aed_define_diag_variable( TRIM(data%pathogens(i)%p_name)//'_att', &
'orgs/m3/d', 'attachment rate')
END IF
ENDIF
ENDDO
Expand Down
9 changes: 6 additions & 3 deletions src/aed_pesticides.F90
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ SUBROUTINE aed_pesticides_load_params(data, dbase, count, list)
ENDIF

IF (data%simSediment) THEN
data%id_psts(i) = aed_define_sheet_variable( TRIM(data%pesticides(i)%name)//'_sed', 'mg/m2', 'sorbed pesticides in sediment',data%pesticides(i)%pst_initial_sed*0.5 )
data%id_pstw(i) = aed_define_sheet_variable( TRIM(data%pesticides(i)%name)//'_pw', 'mg/m2', 'porewater pesticides in sediment',data%pesticides(i)%pst_initial_sed*0.5)
data%id_psts(i) = aed_define_sheet_variable( TRIM(data%pesticides(i)%name)//'_sed', 'mg/m2', &
'sorbed pesticides in sediment',data%pesticides(i)%pst_initial_sed*0.5 )
data%id_pstw(i) = aed_define_sheet_variable( TRIM(data%pesticides(i)%name)//'_pw', 'mg/m2', &
'porewater pesticides in sediment',data%pesticides(i)%pst_initial_sed*0.5)
ENDIF

!data%id_total(i) = aed_define_diag_variable( TRIM(data%pesticides(i)%name)//'_t', 'orgs/m3', 'total')
Expand All @@ -482,7 +484,8 @@ SUBROUTINE aed_pesticides_load_params(data, dbase, count, list)
data%id_total(i) = &
aed_define_diag_variable( TRIM(data%pesticides(i)%name)//'_tot', 'mg/m3' , 'total pesticide concentration')
IF (data%simSediment) data%id_tot_s(i) = &
aed_define_sheet_diag_variable( TRIM(data%pesticides(i)%name)//'_tot_sed', 'mg/m2' , 'total pesticide concentration in the sediment')
aed_define_sheet_diag_variable( TRIM(data%pesticides(i)%name)//'_tot_sed', 'mg/m2' , &
'total pesticide concentration in the sediment')
ENDIF
ENDDO
DEALLOCATE(pd)
Expand Down

0 comments on commit 8accd5f

Please sign in to comment.