Skip to content

Commit

Permalink
netcdf 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Sep 7, 2023
1 parent ab4c771 commit 8f1752b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
- develop
- ci-diagnose*
- netcdf-ci
paths-ignore:
- '**.md'
- 'doc/**'
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ dependencies:
- pytest-order
- pytest-xdist
- flaky
- netcdf-fortran
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ else
with_mpi = false
endif

netcdf = dependency('netcdf', language : 'fortran', required : false)
if netcdf.found()
with_netcdf = true
add_project_dependencies(netcdf, language: 'fortran')
extra_cmp_args += [ '-D__WITH_NETCDF__' ]
else
with_netcdf = false
endif
message('with_netcdf:', with_netcdf)

compile_args += extra_cmp_args

add_project_arguments(fc.get_supported_arguments(compile_args), language: 'fortran')
Expand Down

0 comments on commit 8f1752b

Please sign in to comment.