From d90223dde8516be4f052bd62c6bb24990a2c12c8 Mon Sep 17 00:00:00 2001
From: renchao_lu <renchao.lu@gmail.com>
Date: Wed, 17 Jun 2020 15:58:09 +0200
Subject: [PATCH] [PL] Add class member (chemical process data).

---
 .../ComponentTransport/ChemicalProcessData.h  | 32 +++++++++++++++++++
 .../ComponentTransportProcessData.h           |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 ProcessLib/ComponentTransport/ChemicalProcessData.h

diff --git a/ProcessLib/ComponentTransport/ChemicalProcessData.h b/ProcessLib/ComponentTransport/ChemicalProcessData.h
new file mode 100644
index 00000000000..8b805302324
--- /dev/null
+++ b/ProcessLib/ComponentTransport/ChemicalProcessData.h
@@ -0,0 +1,32 @@
+/**
+ * \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
diff --git a/ProcessLib/ComponentTransport/ComponentTransportProcessData.h b/ProcessLib/ComponentTransport/ComponentTransportProcessData.h
index 6e0b5517452..3636d775ff4 100644
--- a/ProcessLib/ComponentTransport/ComponentTransportProcessData.h
+++ b/ProcessLib/ComponentTransport/ComponentTransportProcessData.h
@@ -12,6 +12,7 @@
 
 #include <memory>
 
+#include "ChemicalProcessData.h"
 #include "MaterialLib/MPL/CreateMaterialSpatialDistributionMap.h"
 #include "MathLib/LinAlg/Eigen/EigenMapTools.h"
 
@@ -43,6 +44,7 @@ struct ComponentTransportProcessData
     Eigen::VectorXd const specific_body_force;
     bool const has_gravity;
     bool const non_advective_form;
+    std::unique_ptr<ChemicalProcessData> chemical_process_data;
 };
 
 }  // namespace ComponentTransport
-- 
GitLab