Changeset 47


Ignore:
Timestamp:
09/05/12 12:50:27 (12 years ago)
Author:
cholod
Message:

Andrew modif. to allow compilation with the ordinary netcdf4 libraries (pb netcdf_par.h)

Location:
trunk/NEMOGCM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/CONFIG/makenemo

    r46 r47  
    280280 
    281281#- At this stage the configuration has beeen chosen 
    282 #- We coose the default light file 
     282#- We choose the default light file 
    283283export USEBLD=bldxioxag.cfg 
    284284 
     
    288288 
    289289#- and test whether we need to build the ioserver 
    290 #  (To put back with the new ioserver) 
    291 #grep key_iomput ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xio/} 
     290grep key_iomput ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xio/} 
    292291 
    293292#- 
  • trunk/NEMOGCM/EXTERNAL/XIOS/src/output/onetcdf4.cpp

    r44 r47  
    3232            if (comm != NULL) 
    3333            { 
    34                if (!multifile) CheckError(nc_create_par(filename.c_str(), NC_NETCDF4|NC_MPIIO, *comm, MPI_INFO_NULL, &this->ncidp)); 
    35                else CheckError(nc_create(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
     34               if (!multifile) {  
     35#ifdef XIOS_NC4_PARALLEL 
     36                    CheckError(nc_create_par(filename.c_str(), NC_NETCDF4|NC_MPIIO, *comm, MPI_INFO_NULL, &this->ncidp)); 
     37#else 
     38                    ERROR("Error: not multifile but ","netcdf4 not compiled with parallel file support"); 
     39#endif 
     40               } else          { 
     41                    CheckError(nc_create(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
     42               } 
    3643            } 
    3744            else CheckError(nc_create(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
     
    4148            if (comm != NULL) 
    4249            { 
    43                if (!multifile) CheckError(nc_open_par(filename.c_str(), NC_NETCDF4|NC_MPIIO, *comm, MPI_INFO_NULL, &this->ncidp)); 
    44                else CheckError(nc_open(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
     50               if (!multifile) {  
     51#ifdef XIOS_NC4_PARALLEL 
     52                     CheckError(nc_open_par(filename.c_str(), NC_NETCDF4|NC_MPIIO, *comm, MPI_INFO_NULL, &this->ncidp)); 
     53#else 
     54                     ERROR("Error: not multifile but ","netcdf4 not compiled with parallel file support"); 
     55#endif 
     56               } else          { 
     57                     CheckError(nc_open(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
     58               } 
    4559            } 
    4660            else  CheckError(nc_open(filename.c_str(), NC_NETCDF4, &this->ncidp)); 
  • trunk/NEMOGCM/EXTERNAL/XIOS/src/output/onetcdf4.hpp

    r44 r47  
    1111#define MPI_INCLUDED 
    1212#include <netcdf.h> 
     13#ifdef XIOS_NC4_PARALLEL 
    1314extern "C" { 
    1415#include <netcdf_par.h> 
    1516} 
     17#endif 
    1618 
    1719 
Note: See TracChangeset for help on using the changeset viewer.