Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
baf6ede2
Commit
baf6ede2
authored
3 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
`add_subdirectory` Tests instead of include
parent
7fefb5e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Overlap/CMakeLists.txt
+8
-1
8 additions, 1 deletion
Overlap/CMakeLists.txt
Overlap/Tests/CMakeLists.txt
+8
-31
8 additions, 31 deletions
Overlap/Tests/CMakeLists.txt
with
16 additions
and
32 deletions
Overlap/CMakeLists.txt
+
8
−
1
View file @
baf6ede2
...
@@ -11,4 +11,11 @@ target_link_libraries(eddy_graph PRIVATE EZMPI::ezmpi Jumble::jumble
...
@@ -11,4 +11,11 @@ target_link_libraries(eddy_graph PRIVATE EZMPI::ezmpi Jumble::jumble
configure_file
(
eddy_graph.sh.in eddy_graph.sh @ONLY FILE_PERMISSIONS
configure_file
(
eddy_graph.sh.in eddy_graph.sh @ONLY FILE_PERMISSIONS
OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
WORLD_EXECUTE
)
WORLD_EXECUTE
)
include
(
Tests/CMakeLists.txt
)
add_subdirectory
(
Tests
)
target_sources
(
test_overlap PRIVATE overlap.f90 spher_polygon_area.f90
weight.f90 candidate_overlap.f90 unit_edge_m.f90
)
target_sources
(
test_spher_polygon_area PRIVATE spher_polygon_area.f90
)
target_sources
(
test_weight PRIVATE weight.f90
)
target_sources
(
test_send_recv PRIVATE send_snapshot.f90 recv_snapshot.f90
)
target_sources
(
test_get_dispatch_snap PRIVATE get_snapshot.f90
dispatch_snapshot.f90 recv_snapshot.f90 send_snapshot.f90
)
This diff is collapsed.
Click to expand it.
Overlap/Tests/CMakeLists.txt
+
8
−
31
View file @
baf6ede2
# test_overlap
# test_overlap
add_executable
(
test_overlap
add_executable
(
test_overlap test_overlap.f90
)
overlap.f90
spher_polygon_area.f90
weight.f90
candidate_overlap.f90
${
CMAKE_CURRENT_LIST_DIR
}
/test_overlap.f90
unit_edge_m.f90
)
target_link_libraries
(
test_overlap Shapelib_03::shapelib_03 Geometry::geometry
target_link_libraries
(
test_overlap Shapelib_03::shapelib_03 Geometry::geometry
Contour_531::contour_531 gpc_f Jumble::jumble
)
Contour_531::contour_531 gpc_f Jumble::jumble
)
# test_read_snapshot
# test_read_snapshot
add_executable
(
test_read_snapshot
add_executable
(
test_read_snapshot test_read_snapshot.f90 write_snapshot.f90
)
${
CMAKE_CURRENT_LIST_DIR
}
/test_read_snapshot.f90
${
CMAKE_CURRENT_LIST_DIR
}
/write_snapshot.f90
)
target_link_libraries
(
test_read_snapshot NetCDF95::netcdf95
target_link_libraries
(
test_read_snapshot NetCDF95::netcdf95
Shapelib_03::shapelib_03 Contour_531::contour_531 gpc_f
Shapelib_03::shapelib_03 Contour_531::contour_531 gpc_f
Jumble::jumble NetCDF_Fortran::netcdff
)
Jumble::jumble NetCDF_Fortran::netcdff
)
# test_spher_polygon_area
# test_spher_polygon_area
add_executable
(
test_spher_polygon_area spher_polygon_area.f90
add_executable
(
test_spher_polygon_area test_spher_polygon_area.f90
)
${
CMAKE_CURRENT_LIST_DIR
}
/test_spher_polygon_area.f90
)
target_link_libraries
(
test_spher_polygon_area Geometry::geometry
target_link_libraries
(
test_spher_polygon_area Geometry::geometry
Shapelib_03::shapelib_03 Jumble::jumble gpc_f
)
Shapelib_03::shapelib_03 Jumble::jumble gpc_f
)
# test_weight
# test_weight
add_executable
(
test_weight weight.f90
add_executable
(
test_weight test_weight.f90
)
${
CMAKE_CURRENT_LIST_DIR
}
/test_weight.f90
)
target_link_libraries
(
test_weight PRIVATE fortrangis::fortranGIS
target_link_libraries
(
test_weight PRIVATE fortrangis::fortranGIS
Contour_531::contour_531 Jumble::jumble
)
Contour_531::contour_531 Jumble::jumble
)
# test_read_eddy
# test_read_eddy
add_executable
(
test_read_eddy
add_executable
(
test_read_eddy test_read_eddy.f90
)
${
CMAKE_CURRENT_LIST_DIR
}
/test_read_eddy.f90
)
target_link_libraries
(
test_read_eddy Shapelib_03::shapelib_03
target_link_libraries
(
test_read_eddy Shapelib_03::shapelib_03
Contour_531::contour_531 gpc_f Jumble::jumble
)
Contour_531::contour_531 gpc_f Jumble::jumble
)
# test_send_recv
# test_send_recv
add_executable
(
test_send_recv
add_executable
(
test_send_recv test_send_recv.f90 write_snapshot.f90
)
${
CMAKE_CURRENT_LIST_DIR
}
/test_send_recv.f90 send_snapshot.f90
recv_snapshot.f90
${
CMAKE_CURRENT_LIST_DIR
}
/write_snapshot.f90
)
target_link_libraries
(
test_send_recv PRIVATE MPI::MPI_Fortran
target_link_libraries
(
test_send_recv PRIVATE MPI::MPI_Fortran
Shapelib_03::shapelib_03 EZMPI::ezmpi Contour_531::contour_531 gpc_f
Shapelib_03::shapelib_03 EZMPI::ezmpi Contour_531::contour_531 gpc_f
NetCDF95::netcdf95 Jumble::jumble NetCDF_Fortran::netcdff
)
NetCDF95::netcdf95 Jumble::jumble NetCDF_Fortran::netcdff
)
# test_get_dispatch_snap
# test_get_dispatch_snap
add_executable
(
test_get_dispatch_snap
add_executable
(
test_get_dispatch_snap test_get_dispatch_snap.f90
${
CMAKE_CURRENT_LIST_DIR
}
/test_get_dispatch_snap.f90
write_snapshot.f90
)
get_snapshot.f90 dispatch_snapshot.f90
${
CMAKE_CURRENT_LIST_DIR
}
/write_snapshot.f90
recv_snapshot.f90
send_snapshot.f90
)
target_link_libraries
(
test_get_dispatch_snap Shapelib_03::shapelib_03
target_link_libraries
(
test_get_dispatch_snap Shapelib_03::shapelib_03
Jumble::jumble Contour_531::contour_531 EZMPI::ezmpi NetCDF95::netcdf95
Jumble::jumble Contour_531::contour_531 EZMPI::ezmpi NetCDF95::netcdf95
gpc_f NetCDF_Fortran::netcdff MPI::MPI_Fortran
)
gpc_f NetCDF_Fortran::netcdff MPI::MPI_Fortran
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment