Skip to content
Snippets Groups Projects
Commit d90223dd authored by renchao.lu's avatar renchao.lu
Browse files

[PL] Add class member (chemical process data).

parent 5e9d0140
No related branches found
No related tags found
No related merge requests found
/**
* \file
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <vector>
#include "MathLib/LinAlg/GlobalMatrixVectorTypes.h"
namespace ProcessLib
{
namespace ComponentTransport
{
struct ChemicalProcessData
{
ChemicalProcessData(
std::vector<std::vector<GlobalIndexType>>& chemical_system_index_map_)
: chemical_system_index_map(chemical_system_index_map_)
{
}
std::vector<std::vector<GlobalIndexType>>& chemical_system_index_map;
};
} // namespace ComponentTransport
} // namespace ProcessLib
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <memory> #include <memory>
#include "ChemicalProcessData.h"
#include "MaterialLib/MPL/CreateMaterialSpatialDistributionMap.h" #include "MaterialLib/MPL/CreateMaterialSpatialDistributionMap.h"
#include "MathLib/LinAlg/Eigen/EigenMapTools.h" #include "MathLib/LinAlg/Eigen/EigenMapTools.h"
...@@ -43,6 +44,7 @@ struct ComponentTransportProcessData ...@@ -43,6 +44,7 @@ struct ComponentTransportProcessData
Eigen::VectorXd const specific_body_force; Eigen::VectorXd const specific_body_force;
bool const has_gravity; bool const has_gravity;
bool const non_advective_form; bool const non_advective_form;
std::unique_ptr<ChemicalProcessData> chemical_process_data;
}; };
} // namespace ComponentTransport } // namespace ComponentTransport
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment