Commit 4f60a0af authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1334 TimeDependencyPolicy: substitute properly the environment variables read in the input data.

parent de635152
......@@ -17,6 +17,7 @@
# include "Utilities/Numeric/Numeric.hpp"
# include "Utilities/Filesystem/File.hpp"
# include "Utilities/Environment/Environment.hpp"
# include "Geometry/Mesh/Internal/Format/Exceptions/Format_fwd.hpp"
# include "Parameters/TimeDependency/Policy/FromFile.hpp"
......@@ -41,7 +42,10 @@ namespace MoReFEM
FromFile::FromFile(const std::string& file)
{
std::ifstream file_in;
FilesystemNS::File::Read(file_in, file, __FILE__, __LINE__);
decltype(auto) environment = Utilities::Environment::CreateOrGetInstance(__FILE__, __LINE__);
FilesystemNS::File::Read(file_in, environment.SubstituteValues(file), __FILE__, __LINE__);
// Skip the first line
std::streamsize maxStreamSize = std::numeric_limits<std::streamsize>::max();
......
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