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

Read `ishape_last` after `d_init`

Preparing for components `ishape_last` and `d_init` of type shpc.
parent 457e3caf
No related branches found
No related tags found
No related merge requests found
...@@ -43,13 +43,12 @@ program test_nearby_extr ...@@ -43,13 +43,12 @@ program test_nearby_extr
read(unit, nml = grid_nml) read(unit, nml = grid_nml)
close(unit) close(unit)
call shpc_open(hshp, trim(shpc_dir), pszaccess = "rb")
call dbf_read_attribute_03(d_init, hshp%extremum, hshp%extr_date, ishape = 0)
open(unit, file = shpc_dir // "/ishape_last.txt", status = "old", & open(unit, file = shpc_dir // "/ishape_last.txt", status = "old", &
action = "read", position = "rewind") action = "read", position = "rewind")
read(unit, fmt = *) ishape_last ! first date read(unit, fmt = *) ishape_last ! first date
close(unit) close(unit)
call shpc_open(hshp, trim(shpc_dir), pszaccess = "rb")
call dbf_read_attribute_03(d_init, hshp%extremum, hshp%extr_date, ishape = 0)
call read_snapshot(s, hshp, nlon, nlat, d_init, k = d_init, & call read_snapshot(s, hshp, nlon, nlat, d_init, k = d_init, &
corner = corner_deg * deg_to_rad, step = step_deg * deg_to_rad, & corner = corner_deg * deg_to_rad, step = step_deg * deg_to_rad, &
copy = 0, ishape_last = [ishape_last]) copy = 0, ishape_last = [ishape_last])
......
...@@ -61,13 +61,12 @@ program test_read_snapshot ...@@ -61,13 +61,12 @@ program test_read_snapshot
"test_read_snapshot dist_lim") "test_read_snapshot dist_lim")
copy = merge(dist_lim, 0, periodic) copy = merge(dist_lim, 0, periodic)
call shpc_open(hshp, trim(shpc_dir), pszaccess = "rb")
call dbf_read_attribute_03(d_init, hshp%extremum, hshp%extr_date, ishape = 0)
open(unit, file = shpc_dir // "/ishape_last.txt", status = "old", & open(unit, file = shpc_dir // "/ishape_last.txt", status = "old", &
action = "read", position = "rewind") action = "read", position = "rewind")
read(unit, fmt = *) ishape_last ! first date read(unit, fmt = *) ishape_last ! first date
close(unit) close(unit)
call shpc_open(hshp, trim(shpc_dir), pszaccess = "rb")
call dbf_read_attribute_03(d_init, hshp%extremum, hshp%extr_date, ishape = 0)
call read_snapshot(s, hshp, nlon, nlat, d_init, k = d_init, & call read_snapshot(s, hshp, nlon, nlat, d_init, k = d_init, &
corner = corner_deg * deg_to_rad, step = step_deg * deg_to_rad, & corner = corner_deg * deg_to_rad, step = step_deg * deg_to_rad, &
copy = copy, ishape_last = [ishape_last]) copy = copy, ishape_last = [ishape_last])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment