Ignore:
Timestamp:
01/31/19 12:12:52 (5 years ago)
Author:
yushan
Message:

branch merged with trunk @1645. arch file (ep&mpi) added for ADA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/io/netCdfInterface.cpp

    r1601 r1646  
    1111#include "netCdfException.hpp" 
    1212#include "ep_mpi.hpp" 
     13 
    1314namespace xios 
    1415{ 
     
    2526  #pragma omp critical (_netcdf) 
    2627  { 
    27     info(100)<<"start nc_create"<<std::endl; 
     28    info(200)<<"start nc_create"<<std::endl; 
    2829    status = nc_create(fileName.c_str(), cMode, &ncId); 
    29     info(100)<<"end nc_create"<<std::endl; 
     30    info(200)<<"end nc_create"<<std::endl; 
    3031  } 
    3132  if (NC_NOERR != status) 
     
    5556int CNetCdfInterface::createPar(const StdString& fileName, int cMode, MPI_Comm comm, MPI_Info info, int& ncId) 
    5657{ 
     58  #ifdef _usingEP 
    5759  int status = xios::nc_create_par(fileName.c_str(), cMode, comm, to_mpi_info(MPI_INFO_NULL), &ncId); 
     60  #elif _usingMPI 
     61  int status = xios::nc_create_par(fileName.c_str(), cMode, comm, MPI_INFO_NULL, &ncId); 
     62  #endif 
    5863 
    5964  if (NC_NOERR != status) 
     
    8489  #pragma omp critical (_netcdf) 
    8590  { 
    86     info(100)<<"start nc_open"<<std::endl; 
     91    info(200)<<"start nc_open"<<std::endl; 
    8792    status = nc_open(fileName.c_str(), oMode, &ncId); 
    88     info(100)<<"end nc_open"<<std::endl; 
     93    info(200)<<"end nc_open"<<std::endl; 
    8994  } 
    9095  if (NC_NOERR != status) 
     
    115120int CNetCdfInterface::openPar(const StdString& fileName, int oMode, MPI_Comm comm, MPI_Info info, int& ncId) 
    116121{ 
     122  #ifdef _usingEP 
    117123  int status = xios::nc_open_par(fileName.c_str(), oMode, comm, to_mpi_info(MPI_INFO_NULL), &ncId); 
     124  #elif _usingMPI 
     125  int status = xios::nc_open_par(fileName.c_str(), oMode, comm, MPI_INFO_NULL, &ncId); 
     126  #endif 
    118127   
    119128  if (NC_NOERR != status) 
     
    142151  #pragma omp critical (_netcdf) 
    143152  { 
    144     info(100)<<"start nc_close"<<std::endl; 
     153    info(200)<<"start nc_close"<<std::endl; 
    145154    status = nc_close(ncId); 
    146     info(100)<<"end nc_close"<<std::endl; 
     155    info(200)<<"end nc_close"<<std::endl; 
    147156  } 
    148157       
     
    171180  #pragma omp critical (_netcdf) 
    172181  { 
    173     info(100)<<"start nc_reDef"<<std::endl; 
     182    info(200)<<"start nc_reDef"<<std::endl; 
    174183    status = nc_redef(ncId); 
    175     info(100)<<"end nc_reDef"<<std::endl; 
     184    info(200)<<"end nc_reDef"<<std::endl; 
    176185  } 
    177186   
     
    200209  #pragma omp critical (_netcdf) 
    201210  { 
    202     info(100)<<"start nc_enddef"<<std::endl; 
     211    info(200)<<"start nc_enddef"<<std::endl; 
    203212    status = nc_enddef(ncId); 
    204     info(100)<<"end nc_enddef"<<std::endl; 
     213    info(200)<<"end nc_enddef"<<std::endl; 
    205214  } 
    206215  if (NC_NOERR != status) 
     
    231240  #pragma omp critical (_netcdf) 
    232241  { 
    233     info(100)<<"start nc_inq_ncid"<<std::endl; 
     242    info(200)<<"start nc_inq_ncid"<<std::endl; 
    234243    status = nc_inq_ncid(ncid, grpName.c_str(), &grpId); 
    235     info(100)<<"end nc_inq_ncid"<<std::endl; 
     244    info(200)<<"end nc_inq_ncid"<<std::endl; 
    236245  } 
    237246   
     
    264273  #pragma omp critical (_netcdf) 
    265274  { 
    266     info(100)<<"start nc_inq_varid"<<std::endl; 
     275    info(200)<<"start nc_inq_varid"<<std::endl; 
    267276    status = nc_inq_varid(ncid, varName.c_str(), &varId); 
    268     info(100)<<"end nc_inq_varid"<<std::endl; 
     277    info(200)<<"end nc_inq_varid"<<std::endl; 
    269278  } 
    270279  if (NC_NOERR != status) 
     
    295304  #pragma omp critical (_netcdf) 
    296305  { 
    297     info(100)<<"start nc_inq_dimid"<<std::endl; 
     306    info(200)<<"start nc_inq_dimid"<<std::endl; 
    298307    status = nc_inq_dimid(ncid, dimName.c_str(), &dimId); 
    299     info(100)<<"end nc_inq_dimid"<<std::endl; 
     308    info(200)<<"end nc_inq_dimid"<<std::endl; 
    300309  } 
    301310   
     
    328337  #pragma omp critical (_netcdf) 
    329338  { 
    330     info(100)<<"start nc_inq_varname"<<std::endl; 
     339    info(200)<<"start nc_inq_varname"<<std::endl; 
    331340    status = nc_inq_varname(ncid, varId, varNameBuff); 
    332     info(100)<<"end nc_inq_varname"<<std::endl; 
     341    info(200)<<"end nc_inq_varname"<<std::endl; 
    333342  } 
    334343  if (NC_NOERR != status) 
     
    358367  #pragma omp critical (_netcdf) 
    359368  { 
    360     info(100)<<"start nc_inq_unlimdim"<<std::endl; 
     369    info(200)<<"start nc_inq_unlimdim"<<std::endl; 
    361370    status = nc_inq_unlimdim(ncid, &dimId); 
    362     info(100)<<"end nc_inq_unlimdim"<<std::endl; 
     371    info(200)<<"end nc_inq_unlimdim"<<std::endl; 
    363372  } 
    364373  if (NC_NOERR != status) 
     
    390399  #pragma omp critical (_netcdf) 
    391400  { 
    392     info(100)<<"start nc_inq_dimname"<<std::endl; 
     401    info(200)<<"start nc_inq_dimname"<<std::endl; 
    393402    status = nc_inq_dimname(ncid, dimId, fullNameIn); 
    394     info(100)<<"end nc_inq_dimname"<<std::endl; 
     403    info(200)<<"end nc_inq_dimname"<<std::endl; 
    395404  } 
    396405  if (NC_NOERR != status) 
     
    421430  #pragma omp critical (_netcdf) 
    422431  { 
    423     info(100)<<"start nc_inq_dimlen"<<std::endl; 
     432    info(200)<<"start nc_inq_dimlen"<<std::endl; 
    424433    status = nc_inq_dimlen(ncid, dimId, &dimLen); 
    425     info(100)<<"end nc_inq_dimlen"<<std::endl; 
     434    info(200)<<"end nc_inq_dimlen"<<std::endl; 
    426435  } 
    427436  if (NC_NOERR != status) 
     
    452461  #pragma omp critical (_netcdf) 
    453462  { 
    454     info(100)<<"start nc_inq_varndims"<<std::endl; 
     463    info(200)<<"start nc_inq_varndims"<<std::endl; 
    455464    status = nc_inq_varndims(ncid, varId, &nDims); 
    456     info(100)<<"end nc_inq_varndims"<<std::endl; 
     465    info(200)<<"end nc_inq_varndims"<<std::endl; 
    457466  } 
    458467  if (NC_NOERR != status) 
     
    483492  #pragma omp critical (_netcdf) 
    484493  { 
    485     info(100)<<"start nc_inq_vardimid"<<std::endl; 
     494    info(200)<<"start nc_inq_vardimid"<<std::endl; 
    486495    status = nc_inq_vardimid(ncid, varId, dimIds); 
    487     info(100)<<"end nc_inq_vardimid"<<std::endl; 
     496    info(200)<<"end nc_inq_vardimid"<<std::endl; 
    488497  } 
    489498  if (NC_NOERR != status) 
     
    515524  #pragma omp critical (_netcdf) 
    516525  { 
    517     info(100)<<"start nc_inq_dimids"<<std::endl; 
     526    info(200)<<"start nc_inq_dimids"<<std::endl; 
    518527    status = nc_inq_dimids(ncid, &nDims, dimIds, includeParents); 
    519     info(100)<<"end nc_inq_dimids"<<std::endl; 
     528    info(200)<<"end nc_inq_dimids"<<std::endl; 
    520529  } 
    521530  if (NC_NOERR != status) 
     
    548557  #pragma omp critical (_netcdf) 
    549558  { 
    550     info(100)<<"start nc_inq_grpname_full"<<std::endl; 
     559    info(200)<<"start nc_inq_grpname_full"<<std::endl; 
    551560    status = nc_inq_grpname_full(ncid, &strlen, NULL); 
    552     info(100)<<"end nc_inq_grpname_full"<<std::endl; 
     561    info(200)<<"end nc_inq_grpname_full"<<std::endl; 
    553562   
    554563    if (NC_NOERR == status) 
     
    557566      status = nc_inq_grpname_full(ncid, NULL, &buff[0]); 
    558567    } 
    559     info(100)<<"start nc_inq_grpname_full"<<std::endl; 
     568    info(200)<<"start nc_inq_grpname_full"<<std::endl; 
    560569  } 
    561570  if (NC_NOERR != status) 
     
    588597  #pragma omp critical (_netcdf) 
    589598  { 
    590     info(100)<<"start nc_inq_grps"<<std::endl; 
     599    info(200)<<"start nc_inq_grps"<<std::endl; 
    591600    status = nc_inq_grps(ncid, &numgrps, ncids); 
    592     info(100)<<"end nc_inq_grps"<<std::endl; 
     601    info(200)<<"end nc_inq_grps"<<std::endl; 
    593602  } 
    594603  if (NC_NOERR != status) 
     
    619628  #pragma omp critical (_netcdf) 
    620629  { 
    621     info(100)<<"start nc_inq_varids"<<std::endl; 
     630    info(200)<<"start nc_inq_varids"<<std::endl; 
    622631    status = nc_inq_varids(ncid, &nvars, varids); 
    623     info(100)<<"end nc_inq_varids"<<std::endl; 
     632    info(200)<<"end nc_inq_varids"<<std::endl; 
    624633  } 
    625634  if (NC_NOERR != status) 
     
    652661  #pragma omp critical (_netcdf) 
    653662  { 
    654     info(100)<<"start nc_inq_att"<<std::endl; 
     663    info(200)<<"start nc_inq_att"<<std::endl; 
    655664    status = nc_inq_att(ncid, varid, name.c_str(), &type, &len); 
    656     info(100)<<"end nc_inq_att"<<std::endl; 
     665    info(200)<<"end nc_inq_att"<<std::endl; 
    657666  } 
    658667   
     
    683692  #pragma omp critical (_netcdf) 
    684693  { 
    685     info(100)<<"start nc_inq_natts"<<std::endl; 
     694    info(200)<<"start nc_inq_natts"<<std::endl; 
    686695    status = nc_inq_natts(ncid, &ngatts); 
    687     info(100)<<"end nc_inq_natts"<<std::endl; 
     696    info(200)<<"end nc_inq_natts"<<std::endl; 
    688697  } 
    689698  if (NC_NOERR != status) 
     
    714723  #pragma omp critical (_netcdf) 
    715724  { 
    716     info(100)<<"start nc_inq_varnatts"<<std::endl; 
     725    info(200)<<"start nc_inq_varnatts"<<std::endl; 
    717726    status = nc_inq_varnatts(ncid, varid, &natts); 
    718     info(100)<<"end nc_inq_varnatts"<<std::endl; 
     727    info(200)<<"end nc_inq_varnatts"<<std::endl; 
    719728  } 
    720729  if (NC_NOERR != status) 
     
    741750  #pragma omp critical (_netcdf) 
    742751  { 
    743     info(100)<<"start nc_inq_attname"<<std::endl; 
     752    info(200)<<"start nc_inq_attname"<<std::endl; 
    744753    status = nc_inq_attname(ncid, varid, attnum, &attName[0]); 
    745     info(100)<<"end nc_inq_attname"<<std::endl; 
     754    info(200)<<"end nc_inq_attname"<<std::endl; 
    746755  } 
    747756  if (NC_NOERR != status) 
     
    778787  #pragma omp critical (_netcdf) 
    779788  { 
    780     info(100)<<"start nc_def_grp"<<std::endl; 
     789    info(200)<<"start nc_def_grp"<<std::endl; 
    781790    status = nc_def_grp(parentNcid, grpName.c_str(), &grpId); 
    782     info(100)<<"end nc_def_grp"<<std::endl; 
     791    info(200)<<"end nc_def_grp"<<std::endl; 
    783792  } 
    784793  if (NC_NOERR != status) 
     
    809818  #pragma omp critical (_netcdf) 
    810819  { 
    811     info(100)<<"start nc_def_dim"<<std::endl; 
     820    info(200)<<"start nc_def_dim"<<std::endl; 
    812821    status = nc_def_dim(ncid, dimName.c_str(), dimLen, &dimId); 
    813     info(100)<<"end nc_def_dim"<<std::endl; 
     822    info(200)<<"end nc_def_dim"<<std::endl; 
    814823  } 
    815824  if (NC_NOERR != status) 
     
    846855  #pragma omp critical (_netcdf) 
    847856  { 
    848     info(100)<<"start nc_def_var"<<std::endl; 
     857    info(200)<<"start nc_def_var"<<std::endl; 
    849858    status = nc_def_var(ncid, varName.c_str(), xtype, nDims, dimIds, &varId); 
    850     info(100)<<"end nc_def_var"<<std::endl; 
     859    info(200)<<"end nc_def_var"<<std::endl; 
    851860  } 
    852861  if (NC_NOERR != status) 
     
    881890  #pragma omp critical (_netcdf) 
    882891  { 
    883     info(100)<<"start nc_def_var_chunking"<<std::endl; 
     892    info(200)<<"start nc_def_var_chunking"<<std::endl; 
    884893    status = nc_def_var_chunking(ncid, varId, storage, chunkSize); 
    885     info(100)<<"end nc_def_var_chunking"<<std::endl; 
     894    info(200)<<"end nc_def_var_chunking"<<std::endl; 
    886895  } 
    887896  if (NC_NOERR != status) 
     
    915924  #pragma omp critical (_netcdf) 
    916925  { 
    917     info(100)<<"start nc_def_var_deflate"<<std::endl; 
     926    info(200)<<"start nc_def_var_deflate"<<std::endl; 
    918927    status = nc_def_var_deflate(ncid, varId, (compressionLevel > 0), (compressionLevel > 0), compressionLevel); 
    919     info(100)<<"end nc_def_var_deflate"<<std::endl; 
     928    info(200)<<"end nc_def_var_deflate"<<std::endl; 
    920929  } 
    921930  if (NC_NOERR != status) 
     
    947956  #pragma omp critical (_netcdf) 
    948957  { 
    949     info(100)<<"start nc_set_fill"<<std::endl; 
     958    info(200)<<"start nc_set_fill"<<std::endl; 
    950959    status = nc_set_fill(ncid, fill ? NC_FILL: NC_NOFILL, &old_fill_mode); 
    951     info(100)<<"end nc_set_fill"<<std::endl; 
     960    info(200)<<"end nc_set_fill"<<std::endl; 
    952961  } 
    953962  if (NC_NOERR != status) 
     
    980989  #pragma omp critical (_netcdf) 
    981990  { 
    982     info(100)<<"start nc_def_var_fill"<<std::endl; 
     991    info(200)<<"start nc_def_var_fill"<<std::endl; 
    983992    status = nc_def_var_fill(ncid, varId, noFill, fillValue); 
    984     info(100)<<"end nc_def_var_fill"<<std::endl; 
     993    info(200)<<"end nc_def_var_fill"<<std::endl; 
    985994  } 
    986995  if (NC_NOERR != status) 
     
    10141023  #pragma omp critical (_netcdf) 
    10151024  { 
    1016     info(100)<<"start nc_var_par_access"<<std::endl; 
     1025    info(200)<<"start nc_var_par_access"<<std::endl; 
    10171026    status = nc_var_par_access(ncid, varId, access); 
    1018     info(100)<<"end nc_var_par_access"<<std::endl; 
     1027    info(200)<<"end nc_var_par_access"<<std::endl; 
    10191028  } 
    10201029  if (NC_NOERR != status) 
     
    10431052  #pragma omp critical (_netcdf) 
    10441053  { 
    1045     info(100)<<"start nc_sync"<<std::endl; 
     1054    info(200)<<"start nc_sync"<<std::endl; 
    10461055    status = nc_sync(ncid); 
    1047     info(100)<<"end nc_sync"<<std::endl; 
     1056    info(200)<<"end nc_sync"<<std::endl; 
    10481057  } 
    10491058  if (NC_NOERR != status) 
     
    10691078  #pragma omp critical (_netcdf) 
    10701079  { 
    1071     info(100)<<"start nc_get_att_double"<<std::endl; 
     1080    info(200)<<"start nc_get_att_double"<<std::endl; 
    10721081    status = nc_get_att_double(ncid, varid, attrName, data); 
    1073     info(100)<<"end nc_get_att_double"<<std::endl; 
     1082    info(200)<<"end nc_get_att_double"<<std::endl; 
    10741083  } 
    10751084  return status; 
     
    10821091  #pragma omp critical (_netcdf) 
    10831092  { 
    1084     info(100)<<"start nc_get_att_float"<<std::endl; 
     1093    info(200)<<"start nc_get_att_float"<<std::endl; 
    10851094    status = nc_get_att_float(ncid, varid, attrName, data); 
    1086     info(100)<<"end nc_get_att_float"<<std::endl; 
     1095    info(200)<<"end nc_get_att_float"<<std::endl; 
    10871096  } 
    10881097  return status; 
     
    10951104  #pragma omp critical (_netcdf) 
    10961105  { 
    1097     info(100)<<"start nc_get_att_int"<<std::endl; 
     1106    info(200)<<"start nc_get_att_int"<<std::endl; 
    10981107    status = nc_get_att_int(ncid, varid, attrName, data); 
    1099     info(100)<<"end nc_get_att_int"<<std::endl; 
     1108    info(200)<<"end nc_get_att_int"<<std::endl; 
    11001109  } 
    11011110  return status;  
     
    11081117  #pragma omp critical (_netcdf) 
    11091118  { 
    1110     info(100)<<"start nc_get_att_long"<<std::endl; 
     1119    info(200)<<"start nc_get_att_long"<<std::endl; 
    11111120    status = nc_get_att_long(ncid, varid, attrName, data); 
    1112     info(100)<<"end nc_get_att_long"<<std::endl; 
     1121    info(200)<<"end nc_get_att_long"<<std::endl; 
    11131122  } 
    11141123  return status; 
     
    11211130  #pragma omp critical (_netcdf) 
    11221131  { 
    1123     info(100)<<"start nc_get_att_short"<<std::endl; 
     1132    info(200)<<"start nc_get_att_short"<<std::endl; 
    11241133    status = nc_get_att_short(ncid, varid, attrName, data); 
    1125     info(100)<<"end nc_get_att_short"<<std::endl; 
     1134    info(200)<<"end nc_get_att_short"<<std::endl; 
    11261135  } 
    11271136  return status; 
     
    11341143  #pragma omp critical (_netcdf) 
    11351144  { 
    1136     info(100)<<"start nc_get_att_text"<<std::endl; 
     1145    info(200)<<"start nc_get_att_text"<<std::endl; 
    11371146    status = nc_get_att_text(ncid, varid, attrName, data); 
    1138     info(100)<<"end nc_get_att_text"<<std::endl; 
     1147    info(200)<<"end nc_get_att_text"<<std::endl; 
    11391148  } 
    11401149  return status; 
     
    11491158  #pragma omp critical (_netcdf) 
    11501159  { 
    1151     info(100)<<"start nc_put_att_double"<<std::endl; 
     1160    info(200)<<"start nc_put_att_double"<<std::endl; 
    11521161    status = nc_put_att_double(ncid, varid, attrName, NC_DOUBLE, numVal, data); 
    1153     info(100)<<"end nc_put_att_double"<<std::endl; 
     1162    info(200)<<"end nc_put_att_double"<<std::endl; 
    11541163  } 
    11551164  return status; 
     
    11631172  #pragma omp critical (_netcdf) 
    11641173  { 
    1165     info(100)<<"start nc_put_att_float"<<std::endl; 
     1174    info(200)<<"start nc_put_att_float"<<std::endl; 
    11661175    status = nc_put_att_float(ncid, varid, attrName, NC_FLOAT, numVal, data); 
    1167     info(100)<<"end nc_put_att_float"<<std::endl; 
     1176    info(200)<<"end nc_put_att_float"<<std::endl; 
    11681177  } 
    11691178  return status; 
     
    11771186  #pragma omp critical (_netcdf) 
    11781187  { 
    1179     info(100)<<"start nc_put_att_int"<<std::endl; 
     1188    info(200)<<"start nc_put_att_int"<<std::endl; 
    11801189    status = nc_put_att_int(ncid, varid, attrName, NC_INT, numVal, data); 
    1181     info(100)<<"end nc_put_att_int"<<std::endl; 
     1190    info(200)<<"end nc_put_att_int"<<std::endl; 
    11821191  } 
    11831192  return status; 
     
    11911200  #pragma omp critical (_netcdf) 
    11921201  { 
    1193     info(100)<<"start nc_put_att_long"<<std::endl; 
     1202    info(200)<<"start nc_put_att_long"<<std::endl; 
    11941203    status = nc_put_att_long(ncid, varid, attrName, NC_LONG, numVal, data); 
    1195     info(100)<<"end nc_put_att_long"<<std::endl; 
     1204    info(200)<<"end nc_put_att_long"<<std::endl; 
    11961205  } 
    11971206  return status; 
     
    12051214  #pragma omp critical (_netcdf) 
    12061215  { 
    1207     info(100)<<"start nc_put_att_short"<<std::endl; 
     1216    info(200)<<"start nc_put_att_short"<<std::endl; 
    12081217    status = nc_put_att_short(ncid, varid, attrName, NC_SHORT, numVal, data); 
    1209     info(100)<<"end nc_put_att_short"<<std::endl; 
     1218    info(200)<<"end nc_put_att_short"<<std::endl; 
    12101219  } 
    12111220  return status; 
     
    12191228  #pragma omp critical (_netcdf) 
    12201229  { 
    1221     info(100)<<"start nc_put_att_text"<<std::endl; 
     1230    info(200)<<"start nc_put_att_text"<<std::endl; 
    12221231    status = nc_put_att_text(ncid, varid, attrName, numVal, data); 
    1223     info(100)<<"end nc_put_att_text"<<std::endl; 
     1232    info(200)<<"end nc_put_att_text"<<std::endl; 
    12241233  } 
    12251234  return status; 
     
    12331242  #pragma omp critical (_netcdf) 
    12341243  { 
    1235     info(100)<<"start nc_get_vara_double"<<std::endl; 
     1244    info(200)<<"start nc_get_vara_double"<<std::endl; 
    12361245    status = nc_get_vara_double(ncid, varid, start, count, data); 
    1237     info(100)<<"end nc_get_vara_double"<<std::endl; 
     1246    info(200)<<"end nc_get_vara_double"<<std::endl; 
    12381247  } 
    12391248  return status; 
     
    12461255  #pragma omp critical (_netcdf) 
    12471256  { 
    1248     info(100)<<"start nc_get_vara_float"<<std::endl; 
     1257    info(200)<<"start nc_get_vara_float"<<std::endl; 
    12491258    status = nc_get_vara_float(ncid, varid, start, count, data); 
    1250     info(100)<<"end nc_get_vara_float"<<std::endl; 
     1259    info(200)<<"end nc_get_vara_float"<<std::endl; 
    12511260  } 
    12521261  return status;  
     
    12591268  #pragma omp critical (_netcdf) 
    12601269  { 
    1261     info(100)<<"start nc_get_vara_int"<<std::endl; 
     1270    info(200)<<"start nc_get_vara_int"<<std::endl; 
    12621271    status = nc_get_vara_int(ncid, varid, start, count, data); 
    1263     info(100)<<"end nc_get_vara_int"<<std::endl; 
     1272    info(200)<<"end nc_get_vara_int"<<std::endl; 
    12641273  } 
    12651274  return status;  
     
    12721281  #pragma omp critical (_netcdf) 
    12731282  { 
    1274     info(100)<<"start nc_get_vara_text"<<std::endl; 
     1283    info(200)<<"start nc_get_vara_text"<<std::endl; 
    12751284    status = nc_get_vara_text(ncid, varid, start, count, data); 
    1276     info(100)<<"end nc_get_vara_text"<<std::endl; 
     1285    info(200)<<"end nc_get_vara_text"<<std::endl; 
    12771286  } 
    12781287  return status; 
     
    12861295  #pragma omp critical (_netcdf) 
    12871296  { 
    1288     info(100)<<"start nc_put_vara_double"<<std::endl; 
     1297    info(200)<<"start nc_put_vara_double"<<std::endl; 
    12891298    status = nc_put_vara_double(ncid, varid, start, count, data); 
    1290     info(100)<<"end nc_put_vara_double"<<std::endl; 
     1299    info(200)<<"end nc_put_vara_double"<<std::endl; 
    12911300  } 
    12921301  return status; 
     
    12991308  #pragma omp critical (_netcdf) 
    13001309  { 
    1301     info(100)<<"start nc_put_vara_float"<<std::endl; 
     1310    info(200)<<"start nc_put_vara_float"<<std::endl; 
    13021311    status = nc_put_vara_float(ncid, varid, start, count, data); 
    1303     info(100)<<"end nc_put_vara_float"<<std::endl; 
     1312    info(200)<<"end nc_put_vara_float"<<std::endl; 
    13041313  } 
    13051314  return status; 
     
    13121321  #pragma omp critical (_netcdf) 
    13131322  { 
    1314     info(100)<<"start nc_put_vara_int"<<std::endl; 
     1323    info(200)<<"start nc_put_vara_int"<<std::endl; 
    13151324    status = nc_put_vara_int(ncid, varid, start, count, data); 
    1316     info(100)<<"end nc_put_vara_int"<<std::endl; 
     1325    info(200)<<"end nc_put_vara_int"<<std::endl; 
    13171326  } 
    13181327  return status; 
     
    13251334  #pragma omp critical (_netcdf) 
    13261335  { 
    1327     info(100)<<"start nc_put_vara_text"<<std::endl; 
     1336    info(200)<<"start nc_put_vara_text"<<std::endl; 
    13281337    status = nc_put_vara_text(ncid, varid, start, count, data); 
    1329     info(100)<<"end nc_put_vara_text"<<std::endl; 
     1338    info(200)<<"end nc_put_vara_text"<<std::endl; 
    13301339  } 
    13311340  return status; 
     
    13451354   #pragma omp critical (_netcdf) 
    13461355   { 
    1347      info(100)<<"start isVarExisted"<<std::endl; 
     1356     info(200)<<"start isVarExisted"<<std::endl; 
    13481357     status = nc_inq_varid(ncId, varName.c_str(), &varId); 
    1349      info(100)<<"end isVarExisted"<<std::endl; 
     1358     info(200)<<"end isVarExisted"<<std::endl; 
    13501359   } 
    13511360   return (NC_NOERR == status); 
     
    13581367   #pragma omp critical (_netcdf) 
    13591368   { 
    1360      info(100)<<"start isDimExisted"<<std::endl; 
     1369     info(200)<<"start isDimExisted"<<std::endl; 
    13611370     status = nc_inq_dimid(ncId, dimName.c_str(), &dimId); 
    1362      info(100)<<"end isDimExisted"<<std::endl; 
     1371     info(200)<<"end isDimExisted"<<std::endl; 
    13631372   } 
    13641373   return (NC_NOERR == status); 
Note: See TracChangeset for help on using the changeset viewer.