Skip to content

Commit

Permalink
Fix issue with actually building and running test
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky-lv426 committed Jun 20, 2024
1 parent a17db3b commit 68df247
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion xios_examples/mix_freq_output/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ run:

# cleanup
clean:
rm -f *.exe *.o *.mod *.MOD *.out *.err *.nc
# rm -f *.exe *.o *.mod *.MOD *.out *.err *.nc
rm -f *.exe *.o *.mod
4 changes: 2 additions & 2 deletions xios_examples/mix_freq_output/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
</field_definition>


<file_definition type="one_file">
<file id="mixed_frequency" output_freq="1ts">
<file_definition type="one_file" enabled=".TRUE.">
<file id="mixed_frequency" name="mixed_frequency" output_freq="1ts" enabled=".TRUE.">
<field_group operation="once">
<field field_ref="pressure" />
<field field_ref="temperature"/>
Expand Down
2 changes: 1 addition & 1 deletion xios_examples/mix_freq_output/multiple_timestep.F90
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ subroutine simulate()
call xios_get_current_date(current)
! Send the pressure data to the output file.
call xios_send_field('pressure', inpdata)
! Send the pressure data to the output file.
! Send the temperature data to the output file.
call xios_send_field('temperature', intdata)
enddo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ def test_mixed_frequency_output(self):
"""
Check/test the frequency of outputted fields are correct.
"""
with open('{}/xios.xml'.format(self.test_dir)) as cxml:
print(cxml.read(), flush=True)
subprocess.run(['mpiexec', '-n', '1', './multiple_timestep.exe', ':',
'-n', '1', './xios_server.exe'],
cwd=self.test_dir, check=True)
self.assertTrue(False)

0 comments on commit 68df247

Please sign in to comment.