Microflow 3D  v1.0
ProgramParameters.h
Go to the documentation of this file.
1 // ==============================================================================================
2 // Microflow 3D, http://www.microflow.pwr.edu.pl/
3 // Created by Roman Szafran on 28.04.19.
4 // Copyright (c) 2019 Wroclaw University of Science and Technology.
5 // Distributed under the Apache License, Version 2.0. You may obtain a copy of the License at
6 // http://www.apache.org/licenses/LICENSE-2.0 or see accompanying file license.txt.
7 // Redistributions of source code must retain the above copyright and license notice.
8 // ==============================================================================================
9 
10 # pragma once
11 
12 #include <string>
13 #include <memory>
14 
15 #include "MFDatabase/ConfigData.h"
16 
17 namespace MF {
18  namespace Solver_CPU {
19 
22  public:
23  explicit ProgramParameters(const std::shared_ptr<MF::Database::ConfigData>& ConfigData_Ptr);
24 
25  ~ProgramParameters() = default;
26 
27  static std::shared_ptr<MF::Solver_CPU::ProgramParameters> New(const std::shared_ptr<MF::Database::ConfigData>& ConfigData_Ptr) {
28  auto ProgramParameters_Ptr = std::make_shared<MF::Solver_CPU::ProgramParameters>(ConfigData_Ptr);
29  return ProgramParameters_Ptr;
30  };
31 
32  //************************************************************************************************************************************
33  // PROGRAM PARAMETERS - FILE PATHS
34  //************************************************************************************************************************************
35 
36  std::string CaseFolder;
37  std::string GeometryFolder;
38  std::string GeometryFileName;
39  std::string CaseParametersFile;
40  std::string ThreadParametersFile;
41  std::string ProgramParametersFile;
42  std::string CheckPointFile;
43  std::string OutputFile;
44  };
45  } /* namespace Solver_CPU */
46 } /* namespace MF */
std::string CaseParametersFile
Case parameters file name and path (relative to case folder).
std::string GeometryFolder
Path to geometry folder.
ProgramParameters(const std::shared_ptr< MF::Database::ConfigData > &ConfigData_Ptr)
The ProgramParameters class stores paths to program files and folders.
std::string CaseFolder
Path to case folder.
std::string GeometryFileName
Geometry file name and path (relative to case folder).
std::string ProgramParametersFile
Program parameters file name and path (relative to case folder).
static std::shared_ptr< MF::Solver_CPU::ProgramParameters > New(const std::shared_ptr< MF::Database::ConfigData > &ConfigData_Ptr)
std::string CheckPointFile
Checkpoint file name and path (relative to case folder), without file extension.
std::string ThreadParametersFile
Thread parameters file name and path (relative to case folder).
std::string OutputFile
Results (output) file name and path (relative to case folder), without file extension.