Skip to content
Snippets Groups Projects
Commit b2fc6144 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[PL] Output; Add OGS_VERSION field data.

parent 41da44c2
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,21 @@
#include "ProcessOutput.h"
#include "BaseLib/BuildInfo.h"
#include "MeshLib/IO/VtkIO/VtuInterface.h"
#include "NumLib/DOF/LocalToGlobalIndexMap.h"
/// Copies the ogs_version string containing the release number and the git
/// hash.
static void addOgsVersion(MeshLib::Mesh& mesh)
{
auto& ogs_version_field = *MeshLib::getOrCreateMeshProperty<char>(
mesh, "OGS_VERSION", MeshLib::MeshItemType::IntegrationPoint, 1);
ogs_version_field.assign(BaseLib::BuildInfo::ogs_version.begin(),
BaseLib::BuildInfo::ogs_version.end());
}
#ifndef USE_PETSC // Not used in PETSc case
static void addSecondaryVariableNodes(
double const t,
......@@ -119,6 +131,8 @@ void processOutputData(
{
DBUG("Process output data.");
addOgsVersion(mesh);
// Copy result
#ifdef USE_PETSC
// TODO It is also possible directly to copy the data for single process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment