/[escript]/trunk/escript/src/DataTagged.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataTagged.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1796 by jfenwick, Wed Sep 17 01:45:46 2008 UTC revision 1800 by ksteube, Thu Sep 18 05:28:20 2008 UTC
# Line 201  DataTagged::DataTagged(const FunctionSpa Line 201  DataTagged::DataTagged(const FunctionSpa
201    }    }
202  }  }
203    
204    DataAbstract*
205    DataTagged::deepCopy()
206    {
207      return new DataTagged(*this);
208    }
209    
210  DataAbstract*  DataAbstract*
211  DataTagged::getSlice(const DataTypes::RegionType& region) const  DataTagged::getSlice(const DataTypes::RegionType& region) const
# Line 896  DataTagged::dump(const std::string fileN Line 900  DataTagged::dump(const std::string fileN
900     if ( rank >0 ) {     if ( rank >0 ) {
901         dims[0]=shape[0];         dims[0]=shape[0];
902         if (! (ncdims[0] = dataFile.add_dim("d0",shape[0])) )         if (! (ncdims[0] = dataFile.add_dim("d0",shape[0])) )
903              throw DataException("Error - DataTagged:: appending ncdimsion 0 to netCDF file failed.");              throw DataException("Error - DataTagged:: appending ncdimension 0 to netCDF file failed.");
904     }     }
905     if ( rank >1 ) {     if ( rank >1 ) {
906         dims[1]=shape[1];         dims[1]=shape[1];
907         if (! (ncdims[1] = dataFile.add_dim("d1",shape[1])) )         if (! (ncdims[1] = dataFile.add_dim("d1",shape[1])) )
908              throw DataException("Error - DataTagged:: appending ncdimsion 1 to netCDF file failed.");              throw DataException("Error - DataTagged:: appending ncdimension 1 to netCDF file failed.");
909     }     }
910     if ( rank >2 ) {     if ( rank >2 ) {
911         dims[2]=shape[2];         dims[2]=shape[2];
912         if (! (ncdims[2] = dataFile.add_dim("d2", shape[2])) )         if (! (ncdims[2] = dataFile.add_dim("d2", shape[2])) )
913              throw DataException("Error - DataTagged:: appending ncdimsion 2 to netCDF file failed.");              throw DataException("Error - DataTagged:: appending ncdimension 2 to netCDF file failed.");
914     }     }
915     if ( rank >3 ) {     if ( rank >3 ) {
916         dims[3]=shape[3];         dims[3]=shape[3];
917         if (! (ncdims[3] = dataFile.add_dim("d3", shape[3])) )         if (! (ncdims[3] = dataFile.add_dim("d3", shape[3])) )
918              throw DataException("Error - DataTagged:: appending ncdimsion 3 to netCDF file failed.");              throw DataException("Error - DataTagged:: appending ncdimension 3 to netCDF file failed.");
919     }     }
920     const DataTagged::DataMapType& thisLookup=getTagLookup();     const DataTagged::DataMapType& thisLookup=getTagLookup();
921     DataTagged::DataMapType::const_iterator i;     DataTagged::DataMapType::const_iterator i;

Legend:
Removed from v.1796  
changed lines
  Added in v.1800

  ViewVC Help
Powered by ViewVC 1.1.26