Skip to content
Permalink
Browse files

changed the order of inintialization of variables

  • Loading branch information...
zhangning737 committed Jul 1, 2019
1 parent 3e1bac3 commit 2d6d00a3991135e4515e26930b45d9c76c4b5a75
Showing with 4 additions and 12 deletions.
  1. +1 −9 MeshLib/IO/VtkIO/PVDFile.cpp
  2. +3 −3 ProcessLib/ThermoMechanics/ThermoMechanicsProcessData.h
@@ -14,7 +14,6 @@
#include <limits>
#include <logog/include/logog.hpp>
#include "BaseLib/Error.h"
#include "MeshLib/IO/VtkIO/VtuInterface.h"

namespace MeshLib
{
@@ -23,14 +22,7 @@ namespace IO

void PVDFile::addVTUFile(const std::string &vtu_fname, double timestep)
{
#ifdef USE_PETSC
auto const vtu_file_name =
getVtuFileNameForPetscOutputWithoutExtension(vtu_fname);

_datasets.emplace_back(timestep, vtu_file_name + ".pvtu");
#else
_datasets.emplace_back(timestep, vtu_fname);
#endif
_datasets.emplace_back(timestep, vtu_fname);

std::ofstream fh(_pvd_filename.c_str());
if (!fh) {
@@ -50,9 +50,9 @@ struct ThermoMechanicsProcessData
linear_thermal_expansion_coefficient(
linear_thermal_expansion_coefficient_),
specific_heat_capacity(specific_heat_capacity_),
thermal_conductivity(thermal_conductivity_),
nonequilibrium_stress(nonequilibrium_stress_),
specific_body_force(specific_body_force_)
thermal_conductivity(thermal_conductivity_),
specific_body_force(specific_body_force_),
nonequilibrium_stress(nonequilibrium_stress_)
{
}

0 comments on commit 2d6d00a

Please sign in to comment.
You can’t perform that action at this time.