Changeset 1268


Ignore:
Timestamp:
09/15/17 15:16:57 (3 years ago)
Author:
ymipsl
Message:

domain_interpolate : if attribute "weight_filename" is not specified, then default filename will be automatically generated for reading.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/transformation/domain_algorithm_interpolate.cpp

    r1267 r1268  
    836836  size_t nbWeightGlo ; 
    837837 
     838 
    838839  CContext* context = CContext::getCurrent(); 
    839840  CContextClient* client=context->client; 
     
    841842  int clientSize = client->clientSize; 
    842843 
     844 
     845  { 
     846    ifstream f(filename.c_str()); 
     847    if (!f.good()) ERROR("void CDomainAlgorithmInterpolate::readInterpolationInfo", 
     848                      << "Attempt to read file weight :"  << filename << " which doesn't seem to exist." << std::endl 
     849                      << "Please check this file "); 
     850  } 
     851                   
    843852  nc_open(filename.c_str(),NC_NOWRITE, &ncid) ; 
    844853  nc_inq_dimid(ncid,"n_weight",&weightDimId) ; 
Note: See TracChangeset for help on using the changeset viewer.