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

Move files to new directory Common

`read_eddy.f90`, `read_field_indices.f90` and `shp_tr_open.f90` will
become common to Overlap and `Inst_eddies` because they will be used
in `Inst_eddies/Tests/test_set_max_speed.f90`. So there are now enough
common files to justify a new directory.
parent 4941b320
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
add_executable(inst_eddies inst_eddies.f90 add_executable(inst_eddies inst_eddies.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 local_extrema.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90 local_extrema.f90
set_max_speed.f90 get_1_outerm.f90 max_speed_contour_ssh.f90 set_max_speed.f90 get_1_outerm.f90 max_speed_contour_ssh.f90
good_contour.f90 ${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 good_contour.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90
mean_speed.f90 inside_4.f90 set_all_outerm.f90 mean_speed.f90 inside_4.f90 set_all_outerm.f90
${CMAKE_SOURCE_DIR}/derived_types.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 nearby_extr.f90 get_var.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90 nearby_extr.f90 get_var.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90 write_aux.f90 config.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90 write_aux.f90 config.f90)
target_include_directories(inst_eddies PRIVATE ${fortrangis_INCLUDE_DIR}) target_include_directories(inst_eddies PRIVATE ${fortrangis_INCLUDE_DIR})
......
# test_get_1_outerm # test_get_1_outerm
add_executable(test_get_1_outerm good_contour.f90 add_executable(test_get_1_outerm good_contour.f90
${CMAKE_SOURCE_DIR}/derived_types.f90 get_1_outerm.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90 get_1_outerm.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90
${CMAKE_CURRENT_LIST_DIR}/test_get_1_outerm.f90 ${CMAKE_CURRENT_LIST_DIR}/test_get_1_outerm.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_get_1_outerm geometry NetCDF95::netcdf95 shapelib_03 target_link_libraries(test_get_1_outerm geometry NetCDF95::netcdf95 shapelib_03
contour_531 nr_util jumble NetCDF_Fortran::NetCDF_Fortran) contour_531 nr_util jumble NetCDF_Fortran::NetCDF_Fortran)
...@@ -17,13 +17,13 @@ target_include_directories(test_get_1_outerm PRIVATE ...@@ -17,13 +17,13 @@ target_include_directories(test_get_1_outerm PRIVATE
# test_set_all_outerm # test_set_all_outerm
add_executable(test_set_all_outerm add_executable(test_set_all_outerm
${CMAKE_SOURCE_DIR}/derived_types.f90 set_all_outerm.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90 set_all_outerm.f90
local_extrema.f90 get_1_outerm.f90 good_contour.f90 local_extrema.f90 get_1_outerm.f90 good_contour.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 nearby_extr.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90 nearby_extr.f90
get_var.f90 ${CMAKE_CURRENT_LIST_DIR}/test_set_all_outerm.f90 get_var.f90 ${CMAKE_CURRENT_LIST_DIR}/test_set_all_outerm.f90
config.f90 ${CMAKE_SOURCE_DIR}/shp_tr_create.f90 config.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_set_all_outerm geometry NetCDF95::netcdf95 target_link_libraries(test_set_all_outerm geometry NetCDF95::netcdf95
numer_rec_95 shapelib_03 contour_531 jumble nr_util numer_rec_95 shapelib_03 contour_531 jumble nr_util
...@@ -65,7 +65,7 @@ target_include_directories(test_mean_speed PRIVATE ...@@ -65,7 +65,7 @@ target_include_directories(test_mean_speed PRIVATE
# test_max_speed_contour_ssh # test_max_speed_contour_ssh
add_executable(test_max_speed_contour_ssh add_executable(test_max_speed_contour_ssh
${CMAKE_SOURCE_DIR}/derived_types.f90 max_speed_contour_ssh.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90 max_speed_contour_ssh.f90
get_var.f90 get_var.f90
${CMAKE_CURRENT_LIST_DIR}/test_max_speed_contour_ssh.f90) ${CMAKE_CURRENT_LIST_DIR}/test_max_speed_contour_ssh.f90)
...@@ -78,7 +78,7 @@ target_include_directories(test_max_speed_contour_ssh PRIVATE ...@@ -78,7 +78,7 @@ target_include_directories(test_max_speed_contour_ssh PRIVATE
# test_nearby_extr # test_nearby_extr
add_executable(test_nearby_extr nearby_extr.f90 add_executable(test_nearby_extr nearby_extr.f90
${CMAKE_SOURCE_DIR}/derived_types.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_CURRENT_LIST_DIR}/test_nearby_extr.f90) ${CMAKE_CURRENT_LIST_DIR}/test_nearby_extr.f90)
target_link_libraries(test_nearby_extr NetCDF95::netcdf95 shapelib_03 target_link_libraries(test_nearby_extr NetCDF95::netcdf95 shapelib_03
...@@ -99,9 +99,9 @@ target_link_libraries(test_local_extrema NetCDF95::netcdf95 nr_util ...@@ -99,9 +99,9 @@ target_link_libraries(test_local_extrema NetCDF95::netcdf95 nr_util
# test_set_max_speed # test_set_max_speed
add_executable(test_set_max_speed add_executable(test_set_max_speed
${CMAKE_SOURCE_DIR}/derived_types.f90 set_max_speed.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90 set_max_speed.f90
good_contour.f90 max_speed_contour_ssh.f90 mean_speed.f90 good_contour.f90 max_speed_contour_ssh.f90 mean_speed.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 inside_4.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90 inside_4.f90
${CMAKE_CURRENT_LIST_DIR}/test_set_max_speed.f90) ${CMAKE_CURRENT_LIST_DIR}/test_set_max_speed.f90)
target_link_libraries(test_set_max_speed geometry numer_rec_95 target_link_libraries(test_set_max_speed geometry numer_rec_95
......
find_package(EZMPI REQUIRED CONFIG) find_package(EZMPI REQUIRED CONFIG)
find_package(GPC_F REQUIRED CONFIG) find_package(GPC_F REQUIRED CONFIG)
add_executable(eddy_graph eddy_graph.f90 shp_tr_open.f90 add_executable(eddy_graph eddy_graph.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 get_snapshot.f90 overlap.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
dispatch_snapshot.f90 ${CMAKE_SOURCE_DIR}/shp_tr_close.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90 get_snapshot.f90
read_field_indices.f90 read_snapshot.f90 recv_snapshot.f90 overlap.f90 dispatch_snapshot.f90
candidate_overlap.f90 spher_polygon_area.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 write_overlap.f90 ${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90 read_snapshot.f90
weight.f90 send_snapshot.f90 read_eddy.f90 recv_snapshot.f90 candidate_overlap.f90 spher_polygon_area.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90 write_overlap.f90
${CMAKE_SOURCE_DIR}/derived_types.f90 unit_edge_m.f90 weight.f90 send_snapshot.f90
${CMAKE_SOURCE_DIR}/Common/read_eddy.f90
${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/Common/derived_types.f90 unit_edge_m.f90
write_edge.f90) write_edge.f90)
target_include_directories(eddy_graph PRIVATE ${fortrangis_INCLUDE_DIR}) target_include_directories(eddy_graph PRIVATE ${fortrangis_INCLUDE_DIR})
......
# test_overlap # test_overlap
add_executable(test_overlap ${CMAKE_SOURCE_DIR}/derived_types.f90 add_executable(test_overlap
overlap.f90 read_snapshot.f90 spher_polygon_area.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90 overlap.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 weight.f90 read_eddy.f90 read_snapshot.f90 spher_polygon_area.f90
read_field_indices.f90 candidate_overlap.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90 weight.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/read_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 write_overlap.f90 ${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90
${CMAKE_CURRENT_LIST_DIR}/test_overlap.f90 shp_tr_open.f90 candidate_overlap.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90 unit_edge_m.f90 write_edge.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90 write_overlap.f90
${CMAKE_CURRENT_LIST_DIR}/test_overlap.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90 unit_edge_m.f90
write_edge.f90)
target_link_libraries(test_overlap shapelib_03 geometry contour_531 target_link_libraries(test_overlap shapelib_03 geometry contour_531
gpc_f ezmpi nr_util jumble MPI::MPI_Fortran) gpc_f ezmpi nr_util jumble MPI::MPI_Fortran)
...@@ -17,14 +21,16 @@ target_include_directories(test_overlap PRIVATE ${fortrangis_INCLUDE_DIR}) ...@@ -17,14 +21,16 @@ target_include_directories(test_overlap PRIVATE ${fortrangis_INCLUDE_DIR})
# test_read_snapshot # test_read_snapshot
add_executable(test_read_snapshot add_executable(test_read_snapshot
${CMAKE_SOURCE_DIR}/derived_types.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 read_snapshot.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90 read_snapshot.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 read_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
read_field_indices.f90 ${CMAKE_SOURCE_DIR}/Common/read_eddy.f90
${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90
${CMAKE_CURRENT_LIST_DIR}/test_read_snapshot.f90 ${CMAKE_CURRENT_LIST_DIR}/test_read_snapshot.f90
${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90 ${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90
${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90 shp_tr_open.f90 ${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_read_snapshot NetCDF95::netcdf95 target_link_libraries(test_read_snapshot NetCDF95::netcdf95
shapelib_03 contour_531 gpc_f ezmpi nr_util jumble shapelib_03 contour_531 gpc_f ezmpi nr_util jumble
...@@ -36,7 +42,7 @@ target_include_directories(test_read_snapshot PRIVATE ...@@ -36,7 +42,7 @@ target_include_directories(test_read_snapshot PRIVATE
# test_spher_polygon_area # test_spher_polygon_area
add_executable(test_spher_polygon_area spher_polygon_area.f90 add_executable(test_spher_polygon_area spher_polygon_area.f90
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90
${CMAKE_CURRENT_LIST_DIR}/test_spher_polygon_area.f90) ${CMAKE_CURRENT_LIST_DIR}/test_spher_polygon_area.f90)
target_link_libraries(test_spher_polygon_area geometry shapelib_03 target_link_libraries(test_spher_polygon_area geometry shapelib_03
...@@ -47,7 +53,8 @@ target_include_directories(test_spher_polygon_area PRIVATE ...@@ -47,7 +53,8 @@ target_include_directories(test_spher_polygon_area PRIVATE
# test_weight # test_weight
add_executable(test_weight weight.f90 ${CMAKE_SOURCE_DIR}/derived_types.f90 add_executable(test_weight weight.f90
${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_CURRENT_LIST_DIR}/test_weight.f90) ${CMAKE_CURRENT_LIST_DIR}/test_weight.f90)
target_link_libraries(test_weight contour_531 nr_util) target_link_libraries(test_weight contour_531 nr_util)
...@@ -55,11 +62,15 @@ target_include_directories(test_weight PRIVATE ${fortrangis_INCLUDE_DIR}) ...@@ -55,11 +62,15 @@ target_include_directories(test_weight PRIVATE ${fortrangis_INCLUDE_DIR})
# test_read_eddy # test_read_eddy
add_executable(test_read_eddy ${CMAKE_SOURCE_DIR}/derived_types.f90 add_executable(test_read_eddy
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 read_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 read_field_indices.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_CURRENT_LIST_DIR}/test_read_eddy.f90 shp_tr_open.f90 ${CMAKE_SOURCE_DIR}/Common/read_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90
${CMAKE_CURRENT_LIST_DIR}/test_read_eddy.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_read_eddy shapelib_03 contour_531 gpc_f target_link_libraries(test_read_eddy shapelib_03 contour_531 gpc_f
ezmpi nr_util MPI::MPI_Fortran) ezmpi nr_util MPI::MPI_Fortran)
...@@ -69,11 +80,11 @@ target_include_directories(test_read_eddy PRIVATE ${fortrangis_INCLUDE_DIR}) ...@@ -69,11 +80,11 @@ target_include_directories(test_read_eddy PRIVATE ${fortrangis_INCLUDE_DIR})
# test_write_overlap # test_write_overlap
add_executable(test_write_overlap add_executable(test_write_overlap
${CMAKE_SOURCE_DIR}/derived_types.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 write_overlap.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90 write_overlap.f90
${CMAKE_CURRENT_LIST_DIR}/test_write_overlap.f90 ${CMAKE_CURRENT_LIST_DIR}/test_write_overlap.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90 unit_edge_m.f90 write_edge.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90 unit_edge_m.f90 write_edge.f90)
target_link_libraries(test_write_overlap shapelib_03 contour_531 nr_util jumble) target_link_libraries(test_write_overlap shapelib_03 contour_531 nr_util jumble)
target_include_directories(test_write_overlap PRIVATE ${fortrangis_INCLUDE_DIR}) target_include_directories(test_write_overlap PRIVATE ${fortrangis_INCLUDE_DIR})
...@@ -84,13 +95,15 @@ find_package(MPI REQUIRED) ...@@ -84,13 +95,15 @@ find_package(MPI REQUIRED)
add_executable(test_send_recv add_executable(test_send_recv
${CMAKE_CURRENT_LIST_DIR}/test_send_recv.f90 send_snapshot.f90 ${CMAKE_CURRENT_LIST_DIR}/test_send_recv.f90 send_snapshot.f90
recv_snapshot.f90 read_field_indices.f90 read_snapshot.f90 recv_snapshot.f90 ${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 read_snapshot.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/shp_tr_create.f90 read_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_SOURCE_DIR}/Common/read_eddy.f90
${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90 ${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90
${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90 ${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90
${CMAKE_SOURCE_DIR}/derived_types.f90 shp_tr_open.f90 ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_send_recv PRIVATE MPI::MPI_Fortran target_link_libraries(test_send_recv PRIVATE MPI::MPI_Fortran
shapelib_03 ezmpi nr_util contour_531 gpc_f NetCDF95::netcdf95 shapelib_03 ezmpi nr_util contour_531 gpc_f NetCDF95::netcdf95
...@@ -103,13 +116,16 @@ target_include_directories(test_send_recv PRIVATE ...@@ -103,13 +116,16 @@ target_include_directories(test_send_recv PRIVATE
add_executable(test_get_dispatch_snap add_executable(test_get_dispatch_snap
${CMAKE_CURRENT_LIST_DIR}/test_get_dispatch_snap.f90 ${CMAKE_CURRENT_LIST_DIR}/test_get_dispatch_snap.f90
get_snapshot.f90 dispatch_snapshot.f90 read_field_indices.f90 get_snapshot.f90 dispatch_snapshot.f90
${CMAKE_SOURCE_DIR}/Common/read_field_indices.f90
${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90 read_snapshot.f90 ${CMAKE_CURRENT_LIST_DIR}/write_snapshot.f90 read_snapshot.f90
recv_snapshot.f90 ${CMAKE_SOURCE_DIR}/shp_tr_create.f90 recv_snapshot.f90 ${CMAKE_SOURCE_DIR}/Common/shp_tr_create.f90
${CMAKE_SOURCE_DIR}/write_eddy.f90 ${CMAKE_SOURCE_DIR}/Common/write_eddy.f90
${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90 read_eddy.f90 ${CMAKE_SOURCE_DIR}/Tests/write_extr_map.f90
send_snapshot.f90 ${CMAKE_SOURCE_DIR}/derived_types.f90 ${CMAKE_SOURCE_DIR}/Common/read_eddy.f90 send_snapshot.f90
shp_tr_open.f90 ${CMAKE_SOURCE_DIR}/shp_tr_close.f90) ${CMAKE_SOURCE_DIR}/Common/derived_types.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_open.f90
${CMAKE_SOURCE_DIR}/Common/shp_tr_close.f90)
target_link_libraries(test_get_dispatch_snap shapelib_03 jumble target_link_libraries(test_get_dispatch_snap shapelib_03 jumble
contour_531 ezmpi NetCDF95::netcdf95 gpc_f nr_util contour_531 ezmpi NetCDF95::netcdf95 gpc_f nr_util
......
add_executable(test_spher_polyline_area add_executable(test_spher_polyline_area
${CMAKE_SOURCE_DIR}/spher_polyline_area.f90 ${CMAKE_SOURCE_DIR}/Common/spher_polyline_area.f90
${CMAKE_CURRENT_LIST_DIR}/test_spher_polyline_area.f90) ${CMAKE_CURRENT_LIST_DIR}/test_spher_polyline_area.f90)
target_link_libraries(test_spher_polyline_area geometry contour_531 nr_util) target_link_libraries(test_spher_polyline_area geometry contour_531 nr_util)
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