src/io/Arh2Writer.hpp
inline void writeFile(SystemVector* sysVec,
                            std::string filename,
                            bool writeParallel = true)
      {
        std::vector<DOFVector<double>*> vecs;
        for (int i = 0; i < sysVec->getSize(); i++)
          vecs.push_back(sysVec->getDOFVector(i));
        detail::write(filename, NULL, vecs, writeParallel);
      }
/**
        * \brief write the meshstructure and the dof values of DOFVectors in sysVec
        * to arh files.
        *
        * The behavior is as follows:
        *
        * If mesh is given, then all the DOFVectors in vecs must belong to the
        * same mesh as the given one.
        *
        * Else vecs can contain DOFVector belong to different meshes and they
        * will be seperated to diff files. If multiple output files generated,
        * they are named like "filename.meshname.arh".
        *
        * Note:
        * 1. NULL pointer in vecs is not allowed for writeFile.
        * 2. Identical name in DOFVectors is not allowed.
        *
        * \param writeParallel
        * the default value is true.
        * In Sequential Model, the value is ignored...
        * In Parallel Model, you can set the value to false if you want to write
        * arh file without adding the processor number. But if you do so, it might
        * highly cause conflict when processors on the same machine try to access
        * the identical file.
      */
\brief write the meshstructure and the dof values of DOFVectors in sysVec
to arh files.

The behavior is as follows.

If mesh is given, then all the DOFVectors in vecs must belong to the
same mesh as the given one.

Else vecs can contain DOFVector belong to different meshes and they
will be seperated to diff files. If multiple output files generated,
they are named like "filename.meshname.arh".

1. NULL pointer in vecs is not allowed for writeFile.
2. Identical name in DOFVectors is not allowed.

\param writeParallel
the default value is true.
In Sequential Model, the value is ignored
In Parallel Model, you can set the value to false if you want to write
arh file without adding the processor number. But if you do so, it might
highly cause conflict when processors on the same machine try to access
the identical file.
\ brief write the meshstructure and the dof values of DOFVectors in sysVec to arh files . The behavior is as follows . If mesh is given then all the DOFVectors in vecs must belong to the same mesh as the given one . Else vecs can contain DOFVector belong to different meshes and they will be seperated to diff files . If multiple output files generated they are named like " filename . meshname . arh " . 1 . NULL pointer in vecs is not allowed for writeFile . 2 . Identical name in DOFVectors is not allowed . \ param writeParallel the default value is true . In Sequential Model the value is ignored In Parallel Model you can set the value to false if you want to write arh file without adding the processor number . But if you do so it might highly cause conflict when processors on the same machine try to access the identical file .
inline void writeFile(SystemVector* sysVec,
                            std::string filename,
                            bool writeParallel = true)
      {
        std::vector<DOFVector<double>*> vecs;
        for (int i = 0; i < sysVec->getSize(); i++)
          vecs.push_back(sysVec->getDOFVector(i));
        detail::write(filename, NULL, vecs, writeParallel);
      }
inline void writeFile ( SystemVector * sysVec , std :: string filename , bool writeParallel = true ) { std :: vector < DOFVector < double > * > vecs ; for ( int i = 0 ; i < sysVec -> getSize ( ) ; i ++ ) vecs . push_back ( sysVec -> getDOFVector ( i ) ) ; detail :: write ( filename , NULL , vecs , writeParallel ) ; }
\brief write the meshstructure and the dof values of DOFVectors in sysVec
 to arh files.
\ brief write the meshstructure and the dof values of DOFVectors in sysVec to arh files .