Skip to content

Commit

Permalink
Modify testsuite to change lasync_io flag when async io is turned on …
Browse files Browse the repository at this point in the history
…or off (#8)
  • Loading branch information
kosterried authored Sep 21, 2017
1 parent 16f7e71 commit 5882524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ l_files = ['INPUT_ORG','INPUT_ASS','INPUT_DIA','INPUT_DYN','INPUT_INI',\
par_file = INPUT_ORG
# File containing time step information
dt_file = INPUT_ORG
# File containing lasync_io flag
io_file = INPUT_IO
# File containing test result
res_file = TEST_RES
# File used for the tolerance checker
Expand Down
3 changes: 3 additions & 0 deletions tools/ts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,11 @@ def __set_parallelization(self):
if get_param(self.conf.par_file,'num_iope_percomm') != '':
if nprocio == 0:
replace_param(self.conf.par_file,'num_iope_percomm',' num_iope_percomm= 0')
replace_param(self.conf.io_file,'lasync_io',' lasync_io=.FALSE.')

else:
replace_param(self.conf.par_file,'num_iope_percomm',' num_iope_percomm= 1')
replace_param(self.conf.io_file,'lasync_io',' lasync_io=.TRUE.')
replace_param(self.conf.par_file,'num_asynio_comm',' num_asynio_comm= %i' %nprocio)
else:
replace_param(self.conf.par_file,'nprocio',' nprocio= %i' %nprocio)
Expand Down

0 comments on commit 5882524

Please sign in to comment.