#include <MEDFileField.hxx>

Public Member Functions | |
| void | write (const char *fileName, int mode) const throw (INTERP_KERNEL::Exception) |
| void | setFileName (const char *fileName) |
| MEDCouplingFieldDouble * | getFieldAtLevel (TypeOfField type, int meshDimRelToMax, int renumPol=0) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingFieldDouble * | getFieldOnMeshAtLevel (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, int renumPol=0) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingFieldDouble * | getFieldOnMeshAtLevel (TypeOfField type, const MEDCouplingMesh *mesh, int renumPol=0) const throw (INTERP_KERNEL::Exception) |
| MEDCouplingFieldDouble * | getFieldAtLevelOld (TypeOfField type, const char *mname, int meshDimRelToMax, int renumPol=0) const throw (INTERP_KERNEL::Exception) |
| DataArrayDouble * | getFieldWithProfile (TypeOfField type, int meshDimRelToMax, const MEDFileMesh *mesh, DataArrayInt *&pfl) const throw (INTERP_KERNEL::Exception) |
| void | setFieldNoProfileSBT (const MEDCouplingFieldDouble *field) throw (INTERP_KERNEL::Exception) |
| void | setFieldProfile (const MEDCouplingFieldDouble *field, const MEDFileMesh *mesh, int meshDimRelToMax, const DataArrayInt *profile) throw (INTERP_KERNEL::Exception) |
Static Public Member Functions | |
| static MEDFileField1TS * | New (const char *fileName, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception) |
| static MEDFileField1TS * | New () |
Private Member Functions | |
| std::vector< std::string > | getPflsReallyUsed () const |
| std::vector< std::string > | getLocsReallyUsed () const |
| MEDFileField1TS (const char *fileName, const char *fieldName, int iteration, int order) throw (INTERP_KERNEL::Exception) | |
| MEDFileField1TS () | |
User class.
| MEDFileField1TS::MEDFileField1TS | ( | const char * | fileName, |
| const char * | fieldName, | ||
| int | iteration, | ||
| int | order | ||
| ) | throw (INTERP_KERNEL::Exception) [private] |
References MEDLoaderBase.buildEmptyString(), MEDLoaderBase.buildStringFromFortran(), MEDLoaderBase.buildUnionUnit(), MEDFileUtilities.CheckFileForRead(), Med_Gen_test.dt, med_opfield_test.dtits, Med_Gen_test.fieldName, Med_Gen_test.fileName, med_2_3.MEDfieldComputingStepInfo(), batchmode_medcorba_test.nbFields, and medMeshing_test.unit.
| MEDFileField1TS::MEDFileField1TS | ( | ) | [private] |
| MEDFileField1TS * MEDFileField1TS::New | ( | const char * | fileName, |
| const char * | fieldName, | ||
| int | iteration, | ||
| int | order | ||
| ) | throw (INTERP_KERNEL::Exception) [static] |
References Med_Gen_test.fieldName, and Med_Gen_test.fileName.
| MEDFileField1TS * MEDFileField1TS::New | ( | ) | [static] |
References ParaMEDMEM.MEDFileField1TS.MEDFileField1TS().
| void MEDFileField1TS::write | ( | const char * | fileName, |
| int | mode | ||
| ) | const throw (INTERP_KERNEL::Exception) |
| void ParaMEDMEM.MEDFileField1TS.setFileName | ( | const char * | fileName | ) |
Reimplemented from ParaMEDMEM.MEDFieldFieldGlobs.
| MEDCouplingFieldDouble * MEDFileField1TS::getFieldAtLevel | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| int | renumPol = 0 |
||
| ) | const throw (INTERP_KERNEL::Exception) |
This method requests underlying file to perform the job, for mesh reading. If the current instance is not coming from a file and has been constructed from scratch an exception will be thrown. In this case you should use MEDFileField1TS.getFieldOnMeshAtLevel method instead. WARNING ! Parameter 'meshDimRelToMax' is relative from read mesh in file that can be different from the field in MED file ! It leads that the returned field of this method is always coherent.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldAtLevel(), and medClient_test.type.
| MEDCouplingFieldDouble * MEDFileField1TS::getFieldOnMeshAtLevel | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| const MEDFileMesh * | mesh, | ||
| int | renumPol = 0 |
||
| ) | const throw (INTERP_KERNEL::Exception) |
This method can be called whatever the mode of instance feeding of this (MED file or from scratch). But the parameter ''meshDimRelToMax' is applyied on 'mesh' (like MEDFileField1TS.getFieldAtLevel does). WARNING the dim of 'this' can be different from those in 'mesh' ! It leads that the returned field of this method is always coherent.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldOnMeshAtLevel(), MED_test2.mesh, and medClient_test.type.
| MEDCouplingFieldDouble * MEDFileField1TS::getFieldOnMeshAtLevel | ( | TypeOfField | type, |
| const MEDCouplingMesh * | mesh, | ||
| int | renumPol = 0 |
||
| ) | const throw (INTERP_KERNEL::Exception) |
WARNING, there is a main difference with the two close methods (MEDFileField1TS.getFieldAtLevel and MEDFileField1TS.getFieldOnMeshAtLevel method) ! Here the mesh-dimension of 'mesh' is used by this to automatically request the right geoTypes regarding 'type'. If no such element fufilled the deduced dimension and 'type' an exception will be thrown. It leads that the returned field of this method is always coherent.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldOnMeshAtLevel(), MED_test2.mesh, and medClient_test.type.
| MEDCouplingFieldDouble * MEDFileField1TS::getFieldAtLevelOld | ( | TypeOfField | type, |
| const char * | mname, | ||
| int | meshDimRelToMax, | ||
| int | renumPol = 0 |
||
| ) | const throw (INTERP_KERNEL::Exception) |
This method is identical to MEDFileField1TS.getFieldAtLevel method except that meshName 'mname' should be specified. This method is called "Old" because in MED3 norm a field has only one meshName attached. This method is only here for reader of MED2 files. See MEDFileField1TS.getFieldAtLevel for more information.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getFieldAtLevel(), and medClient_test.type.
| DataArrayDouble * MEDFileField1TS::getFieldWithProfile | ( | TypeOfField | type, |
| int | meshDimRelToMax, | ||
| const MEDFileMesh * | mesh, | ||
| DataArrayInt *& | pfl | ||
| ) | const throw (INTERP_KERNEL::Exception) |
| void MEDFileField1TS::setFieldNoProfileSBT | ( | const MEDCouplingFieldDouble * | field | ) | throw (INTERP_KERNEL::Exception) |
SBT means Sort By Type. This method is the most basic method to assign field in this. Basic in sense that no renumbering is done. Underlying mesh in 'field' is globaly ignored except for type contiguous check.
References MED_test2.field, and ParaMEDMEM.MEDFileField1TSWithoutDAS.setFieldNoProfileSBT().
| void MEDFileField1TS::setFieldProfile | ( | const MEDCouplingFieldDouble * | field, |
| const MEDFileMesh * | mesh, | ||
| int | meshDimRelToMax, | ||
| const DataArrayInt * | profile | ||
| ) | throw (INTERP_KERNEL::Exception) |
This method is a generalization of MEDFileField1TS.setFieldNoProfileSBT method. Here a profile array is given in input. The support of field 'field' is not used by this method, so it can be null or incoherent with field. This method uses input parameters 'mesh', 'meshDimRelToMax' and 'profile' to determine what is really the support of field 'field'. If field is incoherent regarding this deduced support, an exception will be thrown. This method is trying to reduce the size of MEDfile file so profile is created only if it is absolutely necessary. If it is necessary the name of 'profile' will be used to create it in 'this'. In this case, if this profile name is empty an exception will be thrown.
References MED_test2.field, MED_test2.mesh, and ParaMEDMEM.MEDFileField1TSWithoutDAS.setFieldProfile().
| std::vector< std::string > MEDFileField1TS::getPflsReallyUsed | ( | ) | const [private, virtual] |
Implements ParaMEDMEM.MEDFieldFieldGlobs.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getPflsReallyUsed2().
| std::vector< std::string > MEDFileField1TS::getLocsReallyUsed | ( | ) | const [private, virtual] |
Implements ParaMEDMEM.MEDFieldFieldGlobs.
References ParaMEDMEM.MEDFileField1TSWithoutDAS.getLocsReallyUsed2().