Commit 49362466 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#820 Replace all View() by DevPrint() in Model.

parent bed839a2
......@@ -65,11 +65,10 @@ namespace HappyHeart
decltype(auto) solid_varf = SolidVariationalFormulationPolicyT::GetVariationalFormulation();
decltype(auto) numbering_subset = solid_varf.GetNumberingSubset();
decltype(auto) sol = solid_varf.GetSystemSolution(numbering_subset);
variable_holder.template DevPrint<DevPhase::none>(sol,
"displacement_after_solid_solve");
sol.View(parent::MpiHappyHeart(),
parent::GetOutputDirectory() + "/Mesh_2/NumberingSubset_20/displacement_after_solid_solve_time_" + std::to_string(parent::GetTimeManager().NtimeModified()) + ".m",
__FILE__, __LINE__,
PETSC_VIEWER_ASCII_MATLAB);
{
auto& h0 = GetNonCstVector<SolidIndex::H0>();
......@@ -79,10 +78,8 @@ namespace HappyHeart
h0,
__FILE__, __LINE__);
h0.View(parent::MpiHappyHeart(),
parent::GetOutputDirectory() + "/Mesh_2/NumberingSubset_20/h0_time_" + std::to_string(parent::GetTimeManager().NtimeModified()) + ".m",
__FILE__, __LINE__,
PETSC_VIEWER_ASCII_MATLAB);
variable_holder.template DevPrint<DevPhase::none>(h0,
"h0");
}
......@@ -158,6 +155,8 @@ namespace HappyHeart
template<class SolidVariationalFormulationPolicyT>
void Model<SolidVariationalFormulationPolicyT>::UpdateSolidVector()
{
decltype(auto) variable_holder = GetVariableHolder();
decltype(auto) solid_vector = GetNonCstSolidVelocityVector();
decltype(auto) solid_god_of_dof = parent::GetGodOfDof(EnumUnderlyingType(MeshIndex::solid));
......@@ -183,13 +182,8 @@ namespace HappyHeart
vector_from_fluid.UpdateGhosts(__FILE__, __LINE__);
vector_from_fluid.View(parent::MpiHappyHeart(),
implicit_step_fluid_varf.GetOutputDirectory(explicit_numbering_subset) + "/vector_from_fluid_time_" + std::to_string(parent::GetTimeManager().NtimeModified()) + ".m",
__FILE__, __LINE__,
PETSC_VIEWER_ASCII_MATLAB);
decltype(auto) numbering_subset =
solid_god_of_dof.GetNumberingSubset(EnumUnderlyingType(NumberingSubsetIndex::solid_velocity));
variable_holder.template DevPrint<DevPhase::none>(vector_from_fluid,
"vector_from_fluid");
Wrappers::Petsc::MatMultTranspose(GetSolidOnFluidMesh().GetMatrixSolidToFluid(),
vector_from_fluid,
......@@ -198,12 +192,8 @@ namespace HappyHeart
solid_vector.UpdateGhosts(__FILE__, __LINE__);
solid_vector.View(parent::MpiHappyHeart(),
solid_god_of_dof.GetOutputDirectoryForNumberingSubset(numbering_subset)
+ "/solid_velocity_vector_time_"
+ std::to_string(parent::GetTimeManager().NtimeModified()) + ".m",
__FILE__, __LINE__,
PETSC_VIEWER_ASCII_MATLAB);
variable_holder.template DevPrint<DevPhase::none>(solid_vector,
"solid_velocity_vector");
}
// Load on the solid.
......@@ -228,13 +218,9 @@ namespace HappyHeart
}
{
decltype(auto) numbering_subset =
solid_god_of_dof.GetNumberingSubset(EnumUnderlyingType(UnknownIndex::solid_displacement));
solid_vector.View(parent::MpiHappyHeart(),
solid_god_of_dof.GetOutputDirectoryForNumberingSubset(numbering_subset) + "/solid_vector_time_" + std::to_string(parent::GetTimeManager().NtimeModified()) + ".m",
__FILE__, __LINE__,
PETSC_VIEWER_ASCII_MATLAB);
variable_holder.template DevPrint<DevPhase::none>(solid_vector,
"solid_vector");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment