Skip to content

Commit

Permalink
output to logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Dec 9, 2024
1 parent 1f481aa commit 82a18aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/03_run_roms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ NtileJ = 1
np = NtileI*NtileJ

use_openmp = true
logfile = "roms.out"

cd(simulationdir) do
withenv("OPAL_PREFIX" => nothing) do
ROMS.run_model(modeldir,"roms.in"; use_openmp, np)
ROMS.run_model(modeldir,"roms.in"; use_openmp, np, stdout = logfile)
end
end;

Expand Down

0 comments on commit 82a18aa

Please sign in to comment.