-
- Downloads
Complete `send_snapshot` and `recv_snapshot`
Pass argument copy to `read_snapshot` rather than arguments periodic and `dist_lim`. Motivation: do not recompute copy at each call of `read_snapshot`. `read_snapshot` is going to be called many times in overlap program, with always the same value of copy. And we do not need the values of periodic and `dist_lim` separately in `read_snapshot`. Complete `send_snapshot` and `recv_snapshot` by sending and receiving an entire snapshot. So we need nlon, nlat and copy in `recv_snapshot` to allocate `extr_map`. It is better to pass arguments nlon, nlat and copy than sending and receiving the shape of `extr_map` with MPI, of course, since the shape is the same for all snapshots. In program `test_send_recv`, write the entire received snaphot. Bug fix in `Tests/CMakeLists.txt`: several targets missed `${netcdff_INCLUDE_DIR}`. Create procedure `write_snapshot` from code in main program `test_read_snapshot`, because we need to do this also in program `test_send_recv`. Note the dissymmetry with `read_snapshot`, which does not include the opening and closing of the shapefiles. That is because we anticipate calling `read_snapshot` several times with the same shapefiles in program overlap. Change order of dummy arguments of procedure `write_extr_map`. More convenient for calling it with keywords from `write_snapshot`.
Showing
- Documentation_texfol/documentation.tex 4 additions, 4 deletionsDocumentation_texfol/documentation.tex
- Tests/CMakeLists.txt 30 additions, 11 deletionsTests/CMakeLists.txt
- Tests/test_local_extrema.f90 3 additions, 3 deletionsTests/test_local_extrema.f90
- Tests/test_overlap.f90 5 additions, 4 deletionsTests/test_overlap.f90
- Tests/test_read_snapshot.f90 11 additions, 30 deletionsTests/test_read_snapshot.f90
- Tests/test_send_recv.f90 16 additions, 18 deletionsTests/test_send_recv.f90
- Tests/write_extr_map.f90 2 additions, 2 deletionsTests/write_extr_map.f90
- Tests/write_snapshot.f90 68 additions, 0 deletionsTests/write_snapshot.f90
- extraction_eddies.f90 8 additions, 3 deletionsextraction_eddies.f90
- read_snapshot.f90 8 additions, 9 deletionsread_snapshot.f90
- recv_snapshot.f90 36 additions, 15 deletionsrecv_snapshot.f90
- send_snapshot.f90 25 additions, 13 deletionssend_snapshot.f90
Loading
Please register or sign in to comment