Skip to content

Commit

Permalink
Merge pull request #437 from Fitz-Hu/master
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed Jun 19, 2023
2 parents ae95940 + e0a8f1d commit 7e18a84
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ else
endif
endif

ifeq ($(AOCC), yes)
FPPFLAGS += -DAOCC
endif
#
# kernel choice
#
Expand Down
1 change: 1 addition & 0 deletions build/Makefile_defaults_aocc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ KNOWN_SYSTEM=yes

OMPFLAGS= -fopenmp

AOCC = yes
2 changes: 1 addition & 1 deletion build/Makefile_systems
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ifeq ($(SYSTEM), ozstar)
WALLTIME='168:00:00'
endif

ifeq ($(SYSTEM), ozstar2)
ifeq ($(SYSTEM), nt)
# ozstar milan cluster
include Makefile_defaults_aocc
OMPFLAGS=-fopenmp
Expand Down
5 changes: 5 additions & 0 deletions src/main/readwrite_dumps.F90
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ module readwrite_dumps

public :: write_smalldump,write_fulldump,read_smalldump,read_dump,write_gadgetdump

#ifdef AOCC
logical, pointer, public :: opened_full_dump
logical, pointer, public :: dt_read_in
#else
logical, pointer, public :: opened_full_dump => opened_full_dump_fortran ! for use in analysis files if user wishes to skip small dumps
logical, pointer, public :: dt_read_in => dt_read_in_fortran ! to determine if dt has been read in so that ibin & ibinold can be set on restarts
#endif

integer, parameter, public :: is_small_dump = 1978
integer, parameter, public :: is_not_mhd = 1979
Expand Down

0 comments on commit 7e18a84

Please sign in to comment.