Commit c54e3b93 authored by GILLES Sebastien's avatar GILLES Sebastien

#859 Singleton: add file and line information in one method.

parent d8eefd1a
......@@ -31,7 +31,7 @@ namespace MoReFEM
FilesystemNS::File::Create(out, time_log_filename, __FILE__, __LINE__);
TimeKeep::CreateOrGetInstance(std::move(out));
TimeKeep::CreateOrGetInstance(__FILE__, __LINE__, std::move(out));
}
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp1>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp1>(Create);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp12>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp12>(Create);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp123>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp123>(Create);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp13>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp13>(Create);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp2>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp2>(Create);
} // anonymous namespace
......
......@@ -41,7 +41,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp23>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp23>(Create);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<Comp3>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Comp3>(Create);
} // anonymous namespace
......
......@@ -39,7 +39,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205.
__attribute__((unused)) const bool registered =
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance().Register<CompNA>(Create);
Internal::BoundaryConditionNS::ComponentFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<CompNA>(Create);
} // anonymous namespace
......
......@@ -37,7 +37,8 @@ namespace MoReFEM
template<class InputParameterDataT>
void GodOfDof::Init2(const InputParameterDataT& input_parameter_data)
{
auto& manager = Internal::FEltSpaceNS::DofProgramWiseIndexListPerVertexCoordIndexListManager::CreateOrGetInstance();
auto& manager = Internal::FEltSpaceNS::DofProgramWiseIndexListPerVertexCoordIndexListManager
::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager, *this);
}
......
......@@ -62,7 +62,7 @@ namespace MoReFEM
const auto& unknown_manager = UnknownManager::GetInstance(__FILE__, __LINE__);
auto& numbering_subset_manager =
Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
const auto size = unknown_name_list.size();
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
// #896 obsolete with the correction of the spectral elements.
//__attribute__((unused)) const bool registered =
// Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<HexahedronQ1>();
// Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<HexahedronQ1>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<HexahedronQ2c>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<HexahedronQ2c>();
} // namespace // anonymous
......
......@@ -26,13 +26,13 @@ namespace MoReFEM
__attribute__((unused)) const bool registered_P0 =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<Point<PointShapeEnum::P0>>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Point<PointShapeEnum::P0>>();
__attribute__((unused)) const bool registered_P1 =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<Point<PointShapeEnum::P1>>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Point<PointShapeEnum::P1>>();
__attribute__((unused)) const bool registered_P2 =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<Point<PointShapeEnum::P2>>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<Point<PointShapeEnum::P2>>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
// #896 obsolete with the correction of the spectral elements.
//__attribute__((unused)) const bool registered =
// Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<QuadrangleQ1>();
// Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<QuadrangleQ1>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<QuadrangleQ2c>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<QuadrangleQ2c>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<SegmentP0>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<SegmentP0>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<SegmentP1>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<SegmentP1>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<SegmentP2>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<SegmentP2>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TetrahedronP0>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TetrahedronP0>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TetrahedronP1>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TetrahedronP1>();
} // namespace // anonymous
......
......@@ -27,7 +27,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TetrahedronP1Bubble>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TetrahedronP1Bubble>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TetrahedronP2>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TetrahedronP2>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TriangleP0>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TriangleP0>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TriangleP1>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TriangleP1>();
} // namespace // anonymous
......
......@@ -27,7 +27,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TriangleP1Bubble>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TriangleP1Bubble>();
} // namespace // anonymous
......
......@@ -26,7 +26,7 @@ namespace MoReFEM
__attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TriangleP2>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TriangleP2>();
} // namespace // anonymous
......
......@@ -53,7 +53,7 @@ namespace MoReFEM
* {
* using QuadrangleQ3Q2 = RefFEltNS::Spectral<RefGeomEltNS::TopologyNS::Quadrangle, 3, 2, 0>;
*
* const bool register = Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<QuadrangleQ3Q2>();
* const bool register = Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<QuadrangleQ3Q2>();
* }
* \endcode
*
......@@ -117,7 +117,7 @@ namespace MoReFEM
* {
*
* __attribute__((unused)) const bool registered =
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance().Register<TetrahedronP2>();
Internal::RefFEltNS::BasicRefFEltFactory::CreateOrGetInstance(__FILE__, __LINE__).Register<TetrahedronP2>();
*
*
* } // namespace // anonymous
......
......@@ -112,7 +112,7 @@ namespace MoReFEM
* \brief Register a geometric element
*
* Each geometric element *NewGeometricEltt* should register itself with the line
* GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<*NewGeometricElt*>(*CreateGeometricEltCallBack used to create an object*)
* GeometricEltFactory::CreateOrGetInstance(invoking_file, invoking_line).RegisterGeometricElt<*NewGeometricElt*>(*CreateGeometricEltCallBack used to create an object*)
*
* \tparam RefGeomEltT Type of the 'RefGeomElt' to be registered. This is an object that should be
* defined in GeoRef namespace (for instance RefGeomEltNS::Triangle6); beware however: it is the polymorphic class
......
......@@ -41,7 +41,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Hexahedron20>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Hexahedron20>(CreateMinimal,
CreateEnsight);
......
......@@ -32,7 +32,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Hexahedron27>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Hexahedron27>(CreateMinimal,
nullptr);
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Hexahedron8>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Hexahedron8>(CreateMinimal,
CreateEnsight);
......
......@@ -41,8 +41,9 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Point1>(CreateMinimal,
CreateEnsight);
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__)
.RegisterGeometricElt<RefGeomEltNS::Point1>(CreateMinimal,
CreateEnsight);
} // anonymous namespace
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Quadrangle4>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Quadrangle4>(CreateMinimal,
CreateEnsight);
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Quadrangle8>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Quadrangle8>(CreateMinimal,
CreateEnsight);
......
......@@ -33,7 +33,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Quadrangle9>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Quadrangle9>(CreateMinimal,
nullptr);
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Segment2>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Segment2>(CreateMinimal,
CreateEnsight);
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Segment3>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Segment3>(CreateMinimal,
CreateEnsight);
......
......@@ -40,7 +40,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Tetrahedron10>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Tetrahedron10>(CreateMinimal,
CreateEnsight);
......
......@@ -41,7 +41,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Tetrahedron4>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Tetrahedron4>(CreateMinimal,
CreateEnsight);
......
......@@ -41,7 +41,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Triangle3>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Triangle3>(CreateMinimal,
CreateEnsight);
......
......@@ -39,7 +39,7 @@ namespace MoReFEM
// The return value is mandatory: we can't simply call a void function outside function boundaries
// See "Modern C++ Design", Chapter 8, P205
__attribute__((unused)) const bool registered =
Advanced::GeometricEltFactory::CreateOrGetInstance().RegisterGeometricElt<RefGeomEltNS::Triangle6>(CreateMinimal,
Advanced::GeometricEltFactory::CreateOrGetInstance(__FILE__, __LINE__).RegisterGeometricElt<RefGeomEltNS::Triangle6>(CreateMinimal,
CreateEnsight);
} // namespace anonymous
......
......@@ -176,7 +176,7 @@ namespace MoReFEM
// Ordering is important here: do not modify it lightly!
{
auto& manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
auto& manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......@@ -188,13 +188,13 @@ namespace MoReFEM
mpi.Barrier();
{
auto& manager = DomainManager::CreateOrGetInstance();
auto& manager = DomainManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
{
auto& manager = Advanced::LightweightDomainListManager::CreateOrGetInstance();
auto& manager = Advanced::LightweightDomainListManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......@@ -203,12 +203,12 @@ namespace MoReFEM
// Advanced::SetFromInputParameterData<Internal::PseudoNormalsManager>(input_parameter_data); #938 not activated for the moment.
{
auto& manager = UnknownManager::CreateOrGetInstance();
auto& manager = UnknownManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
{
auto& manager = DirichletBoundaryConditionManager::CreateOrGetInstance();
auto& manager = DirichletBoundaryConditionManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......@@ -219,12 +219,12 @@ namespace MoReFEM
WriteUnknownList(output_directory);
{
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
{
auto& manager = GodOfDofManager::CreateOrGetInstance();
auto& manager = GodOfDofManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager, mpi);
}
......@@ -237,12 +237,14 @@ namespace MoReFEM
decltype(auto) time_manager = GetTimeManager();
{
auto& manager = Internal::FiberNS::FiberListManager<ParameterNS::Type::scalar>::CreateOrGetInstance(time_manager);
auto& manager = Internal::FiberNS::FiberListManager<ParameterNS::Type::scalar>
::CreateOrGetInstance(__FILE__, __LINE__, time_manager);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
{
auto& manager = Internal::FiberNS::FiberListManager<ParameterNS::Type::vector>::CreateOrGetInstance(time_manager);
auto& manager = Internal::FiberNS::FiberListManager<ParameterNS::Type::vector>
::CreateOrGetInstance(__FILE__, __LINE__, time_manager);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......@@ -485,7 +487,7 @@ namespace MoReFEM
inline void Model<DerivedT, DoConsiderProcessorWiseLocal2GlobalT>::CreateDomainListForCoords()
{
{
auto& domain_manager = DomainManager::CreateOrGetInstance();
auto& domain_manager = DomainManager::CreateOrGetInstance(__FILE__, __LINE__);
const auto& domain_list = domain_manager.GetDomainList();
......
......@@ -48,7 +48,7 @@ int main(int argc, char** argv)
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
{
auto& manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
auto& manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......@@ -57,7 +57,7 @@ int main(int argc, char** argv)
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......
......@@ -47,13 +47,13 @@ int main(int argc, char** argv)
if (!FilesystemNS::Folder::DoExist(result_directory))
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, mesh_manager);
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......
......@@ -47,13 +47,13 @@ int main(int argc, char** argv)
if (!FilesystemNS::Folder::DoExist(result_directory))
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, mesh_manager);
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......
......@@ -47,13 +47,13 @@ int main(int argc, char** argv)
if (!FilesystemNS::Folder::DoExist(result_directory))
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, mesh_manager);
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......
......@@ -47,13 +47,13 @@ int main(int argc, char** argv)
if (!FilesystemNS::Folder::DoExist(result_directory))
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
decltype(auto) mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, mesh_manager);
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
decltype(auto) manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(__FILE__, __LINE__);
MoReFEM::Advanced::SetFromInputParameterData<>(input_parameter_data, manager);
}
......
......@@ -48,13 +48,13 @@ int main(int argc, char** argv)
throw Exception("The specified directory doesn't exist!", __FILE__, __LINE__);
auto& mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance();
auto& mesh_manager = Internal::MeshNS::GeometricMeshRegionManager::CreateOrGetInstance(invoking_file, invoking_line);
Advanced::SetFromInputParameterData<>(input_parameter_data, mesh_manager);
const GeometricMeshRegion& mesh = mesh_manager.GetMesh(EnumUnderlyingType(MeshIndex::mesh));
{
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance();
auto& manager = Internal::NumberingSubsetNS::NumberingSubsetManager::CreateOrGetInstance(invoking_file, invoking_line);
Advanced::SetFromInputParameterD