Skip to content
Snippets Groups Projects
Commit 428e99ea authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Do not close and re-open if it is the same file

parent 5759f84b
No related branches found
No related tags found
No related merge requests found
......@@ -108,9 +108,12 @@ contains
new_fill_value = huge(0.))
! (We cannot keep the original fill value because Contour_531
! works with an upper limit for valid values.)
call nf95_close(ncid)
call nf95_open(uv_fname, nf95_nowrite, ncid)
if (uv_fname /= ssh_fname) then
call nf95_close(ncid)
call nf95_open(uv_fname, nf95_nowrite, ncid)
end if
call get_var(periodic, u, ncid, name = "ugos", &
new_fill_value = ieee_value(0., IEEE_QUIET_NAN))
call get_var(periodic, v, ncid, name = "vgos", &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment