Skip to content

Commit

Permalink
Bugfix pnetcdf (#208) (#209)
Browse files Browse the repository at this point in the history
* Add variables used by PNETCDF to explicit use staements.

* Move implicit none statments

* update explicit use statement for pnetcdf
  • Loading branch information
TomasTorsvik authored Nov 25, 2022
1 parent 98ade59 commit 69acff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hamocc/read_netcdf_var.F90
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ SUBROUTINE READ_NETCDF_VAR(ncid,desc,arr,klev,time,typeio)
!**************************************************************************
use netcdf, only: nf90_noerr,nf90_inq_varid,nf90_strerror,nf90_get_var
use mod_xc, only: idm,itdm,jtdm,jdm,lp,mnproc,nbdy,xchalt,xcaput
#ifdef PNETCDF
use mod_xc, only: i0,ii,jj,j0
#endif
implicit none
#ifdef PNETCDF
#include <pnetcdf.inc>
Expand Down
3 changes: 3 additions & 0 deletions hamocc/write_netcdf_var.F90
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ SUBROUTINE WRITE_NETCDF_VAR(ncid,desc,arr,klev,time)
use netcdf, only: nf90_noerr,nf90_inq_varid,nf90_strerror,nf90_put_var
use mod_xc, only: itdm,jtdm,jdm,lp,mnproc,nbdy,idm,xchalt,xcaget
use mod_dia, only: iotype
#ifdef PNETCDF
use mod_xc, only: i0,ii,jj,j0,mproc,mpe_1,nproc,xcgetrow
#endif
implicit none
#ifdef PNETCDF
# include <pnetcdf.inc>
Expand Down

0 comments on commit 69acff8

Please sign in to comment.