Writes in Ensight7 format. More...
Classes | |
| struct | EnsightPart |
| Correspondence between Ensight element type and Arcane. More... | |
| struct | GroupPartInfo |
| Information to share a group into elements of the same subtype. More... | |
| class | WriteBase |
| Functor for writing a variable. More... | |
| class | WriteDouble |
| Functor for writing a variable of type Real. More... | |
| class | WriteArrayDouble |
| Functor for writing a variable of type Real. More... | |
| class | WriteReal3 |
| Functor to write a variable of type Real2. More... | |
| class | WriteArrayReal3 |
| Functor to write a variable of type Real3. More... | |
Public Member Functions | |
| void | writeFileString (std::ostream &o, const String &str) |
| void | writeFileInt (std::ostream &o, int value) |
| void | writeFileDouble (std::ostream &o, double value) |
| Integer | writeDoubleSize () const |
| Integer | writeIntSize () const |
| void | writeFileArray (std::ostream &o, IntegerConstArrayView value) |
| bool | isBinary () const |
| DumpWEnsight7 (IMesh *m, const String &filename, RealConstArrayView times, VariableCollection variables, ItemGroupCollection groups, bool is_binary, bool is_parallel, Integer fileset_size, bool use_degenerated_hexa, bool force_first_geometry, bool save_uids) | |
| void | writeVal (IVariable &, ConstArrayView< Byte >) override |
| Writing for variable v of array a. | |
| void | writeVal (IVariable &v, ConstArrayView< Real > a) override |
| void | writeVal (IVariable &, ConstArrayView< Real2 >) override |
| void | writeVal (IVariable &, ConstArrayView< Real3 >) override |
| Saving vector variables. | |
| void | writeVal (IVariable &v, ConstArrayView< Int16 > a) override |
| void | writeVal (IVariable &v, ConstArrayView< Int32 > a) override |
| void | writeVal (IVariable &v, ConstArrayView< Int64 > a) override |
| void | writeVal (IVariable &, ConstArrayView< Real2x2 >) override |
| void | writeVal (IVariable &, ConstArrayView< Real3x3 >) override |
| void | writeVal (IVariable &, ConstArrayView< String >) override |
| void | writeVal (IVariable &, ConstArray2View< Byte >) override |
| void | writeVal (IVariable &v, ConstArray2View< Real > a) override |
| void | writeVal (IVariable &, ConstArray2View< Real2 >) override |
| void | writeVal (IVariable &, ConstArray2View< Real3 >) override |
| Saving vector array variables. | |
| void | writeVal (IVariable &v, ConstArray2View< Int16 > a) override |
| void | writeVal (IVariable &v, ConstArray2View< Int32 > a) override |
| void | writeVal (IVariable &v, ConstArray2View< Int64 > a) override |
| void | writeVal (IVariable &, ConstArray2View< Real2x2 >) override |
| void | writeVal (IVariable &, ConstArray2View< Real3x3 >) override |
| void | writeVal (IVariable &, ConstMultiArray2View< Byte >) override |
| void | writeVal (IVariable &v, ConstMultiArray2View< Real > a) override |
| void | writeVal (IVariable &, ConstMultiArray2View< Real2 >) override |
| void | writeVal (IVariable &, ConstMultiArray2View< Real3 > a) override |
| Saving vector array variables. | |
| void | writeVal (IVariable &v, ConstMultiArray2View< Int16 > a) override |
| void | writeVal (IVariable &v, ConstMultiArray2View< Int32 > a) override |
| void | writeVal (IVariable &v, ConstMultiArray2View< Int64 > a) override |
| void | writeVal (IVariable &, ConstMultiArray2View< Real2x2 >) override |
| void | writeVal (IVariable &, ConstMultiArray2View< Real3x3 >) override |
| void | beginWrite () override |
| Notifies the start of writing. | |
| void | endWrite () override |
| Notifies the end of writing. | |
| void | setMetaData (const String &) override |
| Sets metadata information. | |
| bool | isParallelOutput () const |
| bool | isMasterProcessor () const |
| bool | isOneFilePerTime () const |
| Int32 | rank () const |
| IParallelMng * | parallelMng () const |
| Public Member Functions inherited from Arcane::DumpW | |
| DumpW () | |
| Constructor. | |
| virtual | ~DumpW () |
| Frees resources. | |
| void | beginWrite (const VariableCollection &vars) |
| Notifies the start of writing. | |
| void | write (IVariable *var, IData *data) |
| Writes the data data of the variable var. | |
| Public Member Functions inherited from Arcane::IDataWriter | |
| virtual | ~IDataWriter ()=default |
| Frees resources. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
Static Public Attributes | |
| static const int | int_width = 10 |
| static const int | g_line_length = 80 |
Private Types | |
| typedef UniqueArray< GroupPartInfo * > | GroupPartInfoList |
Private Member Functions | |
| bool | _isValidVariable (IVariable &) const |
| Checks the validity of the variable to be saved. | |
| void | _createCaseFile () |
| void | _buildFileName (const String &varname, String &filename) |
| Constructs the filename for a variable or mesh name. | |
| void | _buildPartDirectory () |
| Constructs the directory where the variables will be saved. | |
| void | _writeWildcardFilename (std::ostream &ofile, const String &filename, char joker=' *') |
| int | _fileOuttype () const |
| void | _writeFileHeader (std::ostream &o, bool write_c_binary) |
| bool | _isNewBlocFile () const |
| void | _computeGroupParts (ItemGroupList list_group, Integer &partid) |
| void | _saveGroup (std::ostream &ofile, const GroupPartInfo &ensight_grp, ConstArrayView< Integer > nodes_index, WriteBase &wf) |
| void | _saveVariableOnGroup (std::ostream &ofile, const GroupPartInfo &ensight_grp, WriteBase &from_func) |
| bool | _isSameKindOfGroup (const ItemGroup &group, eItemKind item_kind) |
| template<typename T> | |
| void | _writeRealValT (IVariable &v, ConstArrayView< T > a) |
| Template for writing variable as a real variable. | |
| template<typename T> | |
| void | _writeRealValT (IVariable &v, ConstArray2View< T > a) |
| Template for writing array variable as an array real variable. | |
| template<typename T> | |
| void | _writeRealValT (IVariable &v, ConstMultiArray2View< T > a) |
| Template for writing array variable as an array real variable. | |
Private Attributes | |
| IMesh * | m_mesh |
| Mesh. | |
| IParallelMng * | m_parallel_mng |
| Parallelism manager. | |
| Directory | m_base_directory |
| Storage directory name. | |
| Directory | m_part_directory |
| Storage directory for the current iteration. | |
| std::ofstream | m_case_file |
| File describing the case. | |
| std::ostringstream | m_case_file_variables |
| RealUniqueArray | m_times |
| description of saved variables | |
| VariableList | m_save_variables |
| List of variables to export. | |
| ItemGroupList | m_save_groups |
| List of groups to export. | |
| GroupPartInfoList | m_parts |
| bool | m_is_binary |
| List of parts. | |
| bool | m_is_master |
| true if the processor manages the output | |
| bool | m_is_parallel_output |
| bool | m_use_degenerated_hexa |
| bool | m_force_first_geometry |
| bool | m_save_uids |
| Integer | m_total_nb_element |
| Total number of mesh elements across all groups to be saved. | |
| Integer | m_total_nb_group |
| Number of groups to save (== number of parts). | |
| Integer | m_fileset_size |
Static Private Attributes | |
| static const Integer | m_max_prots_digit = 6 |
| Maximum number of digits to indicate the protection number. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| void | _computeGroupParts (ItemGroupList list_group, Integer &partid) |
| Retrieves a group of a given type and its information. | |
| void | _saveGroup (std::ostream &ofile, const GroupPartInfo &ensight_grp, ConstArrayView< Integer > nodes_index, WriteBase &wf) |
| Saves the connectivity of elements in a group. | |
| void | _saveVariableOnGroup (std::ostream &ofile, const GroupPartInfo &ensight_grp, WriteBase &from_func) |
| Applies a functor to the elements of a group. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Writes in Ensight7 format.
The writing is done in Ensight case format and in ASCII.
There are two saving mechanisms depending on whether the temporal aspect is used or not. The choice is made using the array m_times. If it is empty, a snapshot is taken, meaning just an output of the variables. If it is not empty, a temporal output is performed, which contains a list of time instants, and in this case, a time save is performed. The variables are then saved at their current value, considering it to be the last protection of the array m_times. To have larger files, #m_fileset_size protections are saved per file.
In both cases, m_base_directory contains the path and directory where the variables will be saved.
The case format uses one file to describe the case (.case), one file to describe the geometry (.geo), and one file per variable. In the case of a temporal save, there is one geometry and one variable file per time instant. In this case, the file names are suffixed by the protection number. For example, for a variable 'Pressure', the save file name in the case of a snapshot is just 'Pressure'. In the case of a temporal save at the 4th protection, the name will be 'Pressure000004'.
For more precision in the Ensight case format, refer to the user manual for Ensight6 or Ensight7.
Definition at line 95 of file DumpWEnsight7.cc.
|
private |
Definition at line 727 of file DumpWEnsight7.cc.
| Arcane::DumpWEnsight7::DumpWEnsight7 | ( | IMesh * | m, |
| const String & | filename, | ||
| RealConstArrayView | times, | ||
| VariableCollection | variables, | ||
| ItemGroupCollection | groups, | ||
| bool | is_binary, | ||
| bool | is_parallel, | ||
| Integer | fileset_size, | ||
| bool | use_degenerated_hexa, | ||
| bool | force_first_geometry, | ||
| bool | save_uids ) |
Definition at line 825 of file DumpWEnsight7.cc.
| Arcane::DumpWEnsight7::~DumpWEnsight7 | ( | ) |
Definition at line 862 of file DumpWEnsight7.cc.
Constructs the filename for a variable or mesh name.
Constructs the filename in which a variable or mesh named name will be saved. The filename is returned in filename.
The protection number is inserted at the end of the file in the form of a number formatted with m_max_prots_digit characters. For example, for 'Pressure' at iteration 4 with #m_max_prot_digit equal to 6, we will get the filename 'Pressure000004'.
Definition at line 1770 of file DumpWEnsight7.cc.
References Arcane::Directory::createDirectory(), m_base_directory, m_is_master, m_max_prots_digit, m_part_directory, m_times, and Arcane::StringBuilder::toString().
Referenced by _writeRealValT(), _writeRealValT(), beginWrite(), writeVal(), and writeVal().
|
private |
Constructs the directory where the variables will be saved.
If you want the outputs in multiple files, the directory of the current block is named 'bloc******'. For example, for the 4th block, it is 'bloc000004'.
the block number is inserted in the form of a number formatted with m_max_prots_digit characters.
Definition at line 1830 of file DumpWEnsight7.cc.
References m_base_directory, m_is_master, m_max_prots_digit, m_part_directory, and m_times.
Referenced by beginWrite().
|
private |
Definition at line 1910 of file DumpWEnsight7.cc.
|
private |
Definition at line 1890 of file DumpWEnsight7.cc.
|
private |
Definition at line 1809 of file DumpWEnsight7.cc.
|
private |
Checks the validity of the variable to be saved.
Only variables at nodes, faces, or cells are processed.
Only variables in the #m_save_variable_list are saved. If this list is empty, all are saved.
| true | if the variable is valid |
| false | otherwise |
Definition at line 1739 of file DumpWEnsight7.cc.
References Arcane::IK_Cell, Arcane::IK_Face, Arcane::IK_Node, Arcane::IVariable::isUsed(), Arcane::IVariable::itemKind(), and m_save_variables.
Referenced by _writeRealValT(), _writeRealValT(), _writeRealValT(), writeVal(), writeVal(), and writeVal().
|
private |
Definition at line 1335 of file DumpWEnsight7.cc.
|
private |
Template for writing array variable as an array real variable.
Saving constant dimension array variables (by row) of scalars.
Definition at line 2019 of file DumpWEnsight7.cc.
References _buildFileName(), _isValidVariable(), Arcane::TraceAccessor::debug(), Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::IVariable::isPartial(), Arcane::IVariable::itemGroup(), Arcane::IVariable::itemKind(), Arcane::ItemGroup::localIdToIndex(), m_is_master, and Arcane::IVariable::name().
|
private |
Template for writing variable as a real variable.
Saves scalar variables.
Definition at line 1923 of file DumpWEnsight7.cc.
References _buildFileName(), _isValidVariable(), Arcane::ConstArrayView< T >::data(), Arcane::TraceAccessor::debug(), Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::IVariable::isPartial(), Arcane::IVariable::itemGroup(), Arcane::IVariable::itemKind(), Arcane::ItemGroup::localIdToIndex(), m_is_master, Arcane::IVariable::name(), and Arcane::ConstArrayView< T >::size().
Referenced by endWrite().
|
private |
Template for writing array variable as an array real variable.
Saving non-constant dimension array variables (by row) of scalars.
Definition at line 2116 of file DumpWEnsight7.cc.
References _isValidVariable(), Arcane::IVariable::name(), and Arcane::TraceAccessor::warning().
|
private |
Definition at line 1864 of file DumpWEnsight7.cc.
|
overridevirtual |
Notifies the start of writing.
Implements Arcane::DumpW.
Definition at line 1482 of file DumpWEnsight7.cc.
References _buildFileName(), _buildPartDirectory(), Arcane::List< T >::clone(), Arcane::IParallelMng::commRank(), Arcane::CollectionBase::count(), Arcane::TraceAccessor::debug(), ENUMERATE_ITEM, ENUMERATE_NODE, Arcane::Array< T >::fill(), Arcane::IK_Node, Arcane::IParallelMng::isParallel(), Arcane::IVariable::isPartial(), Arcane::IVariable::itemGroup(), Arcane::Item::localId(), m_base_directory, m_is_master, m_is_parallel_output, m_mesh, m_parallel_mng, m_save_groups, m_save_variables, m_times, m_total_nb_element, m_total_nb_group, Arcane::Array< T >::resize(), Arcane::ItemGroup::size(), Arcane::Item::uniqueId(), and Arcane::Array< T >::view().
|
overridevirtual |
Notifies the end of writing.
Implements Arcane::DumpW.
Definition at line 1625 of file DumpWEnsight7.cc.
References _writeRealValT(), Arcane::IVariable::data(), Arcane::TraceAccessor::debug(), ENUMERATE_CELL, ENUMERATE_NODE, Arcane::String::localstr(), m_base_directory, m_case_file, m_is_master, m_mesh, m_save_variables, m_times, Arcane::IVariable::notifyBeginWrite(), Arcane::IVariable::PPrivate, Arcane::IVariable::PTemporary, Arcane::IVariable::setUsed(), Arcane::VariableRef::variable(), Arcane::TraceAccessor::warning(), and Arcane::DumpW::write().
|
inline |
Definition at line 350 of file DumpWEnsight7.cc.
|
inline |
Definition at line 719 of file DumpWEnsight7.cc.
|
inline |
Definition at line 720 of file DumpWEnsight7.cc.
|
inline |
Definition at line 718 of file DumpWEnsight7.cc.
|
inline |
Definition at line 722 of file DumpWEnsight7.cc.
|
inline |
Definition at line 721 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Sets metadata information.
Implements Arcane::DumpW.
Definition at line 716 of file DumpWEnsight7.cc.
| Integer Arcane::DumpWEnsight7::writeDoubleSize | ( | ) | const |
Definition at line 1288 of file DumpWEnsight7.cc.
| void Arcane::DumpWEnsight7::writeFileArray | ( | std::ostream & | o, |
| IntegerConstArrayView | value ) |
Definition at line 1298 of file DumpWEnsight7.cc.
| void Arcane::DumpWEnsight7::writeFileDouble | ( | std::ostream & | o, |
| double | value ) |
Definition at line 1269 of file DumpWEnsight7.cc.
| void Arcane::DumpWEnsight7::writeFileInt | ( | std::ostream & | o, |
| int | value ) |
Definition at line 1242 of file DumpWEnsight7.cc.
| void Arcane::DumpWEnsight7::writeFileString | ( | std::ostream & | o, |
| const String & | str ) |
Definition at line 1316 of file DumpWEnsight7.cc.
| Integer Arcane::DumpWEnsight7::writeIntSize | ( | ) | const |
Definition at line 1258 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 694 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 696 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 701 of file DumpWEnsight7.cc.
|
overridevirtual |
Saving vector array variables.
Implements Arcane::DumpW.
Definition at line 2222 of file DumpWEnsight7.cc.
References _buildFileName(), _isValidVariable(), Arcane::TraceAccessor::debug(), Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::IVariable::isPartial(), Arcane::IVariable::itemGroup(), Arcane::IVariable::itemKind(), Arcane::ItemGroup::localIdToIndex(), m_is_master, and Arcane::IVariable::name().
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 702 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Writing for variable v of array a.
Implements Arcane::DumpW.
Definition at line 683 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 685 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 690 of file DumpWEnsight7.cc.
|
overridevirtual |
Saving vector variables.
Implements Arcane::DumpW.
Definition at line 2134 of file DumpWEnsight7.cc.
References _buildFileName(), _isValidVariable(), Arcane::TraceAccessor::debug(), Arcane::IK_Cell, Arcane::IK_Edge, Arcane::IK_Face, Arcane::IK_Node, Arcane::IVariable::isPartial(), Arcane::IVariable::itemGroup(), Arcane::IVariable::itemKind(), Arcane::ItemGroup::localIdToIndex(), m_is_master, Arcane::IVariable::name(), and Arcane::ConstArrayView< T >::size().
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 691 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 692 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 704 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 706 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 711 of file DumpWEnsight7.cc.
|
overridevirtual |
Saving vector array variables.
Implements Arcane::DumpW.
Definition at line 2316 of file DumpWEnsight7.cc.
References _isValidVariable(), Arcane::IVariable::name(), and Arcane::TraceAccessor::warning().
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 712 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Reimplemented from Arcane::DumpW.
Definition at line 698 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 699 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 700 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 695 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Reimplemented from Arcane::DumpW.
Definition at line 687 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 688 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 689 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 684 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Reimplemented from Arcane::DumpW.
Definition at line 708 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 709 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 710 of file DumpWEnsight7.cc.
|
inlineoverridevirtual |
Implements Arcane::DumpW.
Definition at line 705 of file DumpWEnsight7.cc.
|
Retrieves a group of a given type and its information.
The template parameter is either a DumpWEnsight7::CellGroup, or a DumpWEnsight7::FaceGroup.
First, iterate through the list of groups (list_group) and retrieve those of type T::GroupType. Add these groups to the list grp_list and assign them a number partid. Note that partid is passed by reference and is incremented in this function. This identifier corresponds to the part number (part) in ensight.
Next, determine for each of its groups the number of elements of each Ensight subtype. For example, for a cell group, determine the number of hexa8, the number of pyramid5, ...
Definition at line 892 of file DumpWEnsight7.cc.
References Arcane::TraceAccessor::debug(), ENUMERATE_ITEM, Arcane::ItemTypeMng::hasGeneralCells(), Arcane::Trace::High, Arcane::IK_Cell, Arcane::IK_Face, Arcane::ItemGroup::isOwn(), Arcane::ItemGroup::itemKind(), Arcane::IMesh::itemTypeMng(), Arcane::ItemGroup::mesh(), Arcane::ItemGroup::name(), Arcane::ItemTypeMng::nbBasicItemType(), Arcane::ItemTypeMng::nbBuiltInItemType(), Arcane::DumpWEnsight7::GroupPartInfo::nbType(), Arcane::ItemGroup::null(), Arcane::ItemGroup::own(), Arcane::Array< T >::resize(), Arcane::Item::toItemWithNodes(), and Arcane::Item::type().
|
Saves the connectivity of elements in a group.
Saves the connectivity of the elements in group ensight_grp. The difficulty comes from the fact that Ensight requires that elements be saved according to their type, that is, hexa on one side, tetra on the other, and so on. ensight_grp.m_nb_sub_part[] contains the number of elements for each ensight type. Therefore, we iterate through the list of elements of the group autant de fois qu'il y a de possible Ensight types (4 for cells, 2 for faces), and in each pass, we only save elements that are of the correct type. It is a bit tedious, but it avoids having to manage a list for each subtype.
| ofile | output stream |
| nodes_index | index of each node in the Ensight coordinate array. |
| ensight_grp | group to save |
| wf | writer |
Definition at line 996 of file DumpWEnsight7.cc.
References Arcane::ConstArrayView< T >::data(), Arcane::Cell::face(), Arcane::Cell::faces(), Arcane::ItemTypeInfo::localFace(), Arcane::Item::localId(), Arcane::String::localstr(), m_mesh, Arcane::ItemGroup::name(), Arcane::Cell::nbFace(), Arcane::ItemTypeInfo::nbLocalFace(), Arcane::ItemTypeInfo::LocalFace::nbNode(), Arcane::ItemWithNodes::nbNode(), Arcane::DumpWEnsight7::GroupPartInfo::nbType(), Arcane::ItemTypeInfo::LocalFace::node(), Arcane::ItemWithNodes::node(), Arcane::Array< T >::resize(), Arcane::ConstArrayView< T >::size(), Arcane::Item::toCell(), Arcane::Item::toItemWithNodes(), Arcane::Item::typeInfo(), and Arcane::Item::uniqueId().
|
Applies a functor to the elements of a group.
Applies the functor from_func to the group ensight_grp.
The functor must derive from WriteBase and is used to save a variable of a given type. In Ensight, variables are saved for each part and each element type (hexa8, ...). The operation is similar to saving the geometry (see the function _ensightSaveGroup()). Therefore, the same procedure must be followed: iterate over the group as many times as there are element types, and in one iteration, only save the variables for a given element type.
| ofile | output stream |
| ensight_grp | group |
| from_func | functor |
Definition at line 1195 of file DumpWEnsight7.cc.
References Arcane::PtrT< T >::get(), Arcane::DumpWEnsight7::GroupPartInfo::nbType(), and Arcane::ConstArrayView< T >::size().
|
static |
Definition at line 102 of file DumpWEnsight7.cc.
|
static |
Definition at line 101 of file DumpWEnsight7.cc.
|
private |
Storage directory name.
Definition at line 733 of file DumpWEnsight7.cc.
Referenced by _buildFileName(), _buildPartDirectory(), beginWrite(), and endWrite().
|
private |
File describing the case.
Definition at line 735 of file DumpWEnsight7.cc.
Referenced by endWrite().
|
private |
Definition at line 736 of file DumpWEnsight7.cc.
|
private |
Definition at line 755 of file DumpWEnsight7.cc.
|
private |
Definition at line 747 of file DumpWEnsight7.cc.
|
private |
|
private |
true if the processor manages the output
Definition at line 742 of file DumpWEnsight7.cc.
Referenced by _buildFileName(), _buildPartDirectory(), _writeRealValT(), _writeRealValT(), beginWrite(), endWrite(), writeVal(), and writeVal().
|
private |
true if outputs are parallel with a proc collecting the outputs from others
Definition at line 745 of file DumpWEnsight7.cc.
Referenced by beginWrite().
|
staticprivate |
Maximum number of digits to indicate the protection number.
Definition at line 761 of file DumpWEnsight7.cc.
Referenced by _buildFileName(), and _buildPartDirectory().
|
private |
Mesh.
Definition at line 731 of file DumpWEnsight7.cc.
Referenced by _saveGroup(), beginWrite(), and endWrite().
|
private |
|
private |
Storage directory for the current iteration.
Definition at line 734 of file DumpWEnsight7.cc.
Referenced by _buildFileName(), and _buildPartDirectory().
|
private |
Definition at line 740 of file DumpWEnsight7.cc.
|
private |
List of groups to export.
Definition at line 739 of file DumpWEnsight7.cc.
Referenced by beginWrite().
|
private |
Definition at line 748 of file DumpWEnsight7.cc.
|
private |
List of variables to export.
Definition at line 738 of file DumpWEnsight7.cc.
Referenced by _isValidVariable(), beginWrite(), and endWrite().
|
private |
description of saved variables
List of time instants
Definition at line 737 of file DumpWEnsight7.cc.
Referenced by _buildFileName(), _buildPartDirectory(), beginWrite(), and endWrite().
|
private |
Total number of mesh elements across all groups to be saved.
Definition at line 750 of file DumpWEnsight7.cc.
Referenced by beginWrite().
|
private |
Number of groups to save (== number of parts).
Number of elements in a timeset When saving multiple time instants in one file, a maximum of m_fileset_size time instants are placed in one file, and when this number is reached, another file is used.
Definition at line 751 of file DumpWEnsight7.cc.
Referenced by beginWrite().
|
private |
Definition at line 746 of file DumpWEnsight7.cc.