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

#1332 Replace some singleton call GetInstance() by CreateOrGetInstance() for...

#1332 Replace some singleton call GetInstance() by CreateOrGetInstance() for the same of some tests in which usual expectations of ordering are not met.
parent 5a6f721f
......@@ -427,7 +427,8 @@ namespace MoReFEM
static unsigned int assigned_ensight_index = 1u;
unsigned int read_ensight_index;
const auto& geometric_elt_factory = ::MoReFEM::Advanced::GeometricEltFactory::GetInstance(__FILE__, __LINE__);
const auto& geometric_elt_factory =
::MoReFEM::Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__);
while (true)
{
......@@ -511,7 +512,8 @@ namespace MoReFEM
index,
std::move(description));
const auto& geometric_elt_factory = ::MoReFEM::Advanced::GeometricEltFactory::GetInstance(__FILE__, __LINE__);
const auto& geometric_elt_factory =
::MoReFEM::Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__);
// In the following, we should get one block per geometric geometric elementpresent in the label
// Format is:
......
......@@ -550,7 +550,8 @@ namespace MoReFEM
LabelHelper& label_helper)
{
// Iterate through all registered geometric elements
const auto& geometric_elt_factory = ::MoReFEM::Advanced::GeometricEltFactory::GetInstance(__FILE__, __LINE__);
const auto& geometric_elt_factory =
::MoReFEM::Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__);
const auto& medit_type_list = geometric_elt_factory.MeditRefGeomEltList();
auto Ncoord = static_cast<unsigned int>(GmfStatKwd(mesh_index_, GmfVertices));
......
......@@ -87,6 +87,7 @@ namespace MoReFEM
const auto& dI3dC =
invariant_holder.GetFirstDerivativeWrtCauchyGreen(invariant_holder_type::invariants_first_derivative_index::dI3dC);
throw Exception("FAKE", __FILE__, __LINE__);
// Note: one of these quantities might be infinite... but in this case this infinite (or a resulting
// nan) will be assembled into a Petsc matrix or vector, which will in turn handle properly
......
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