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

[PL] Vectorized process solutions of previous time step.

parent 8ee4a953
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,8 @@ void ComponentTransportProcess::initializeConcreteProcess( ...@@ -63,6 +63,8 @@ void ComponentTransportProcess::initializeConcreteProcess(
pv_iter != _process_variables.end(); pv_iter != _process_variables.end();
++pv_iter) ++pv_iter)
transport_process_variables.push_back((*pv_iter)[0]); transport_process_variables.push_back((*pv_iter)[0]);
_xs_previous_timestep.resize(_process_variables.size());
} }
ProcessLib::createLocalAssemblers<LocalAssemblerData>( ProcessLib::createLocalAssemblers<LocalAssemblerData>(
......
...@@ -147,7 +147,7 @@ private: ...@@ -147,7 +147,7 @@ private:
_local_assemblers; _local_assemblers;
/// Solutions of the previous time step /// Solutions of the previous time step
std::array<std::unique_ptr<GlobalVector>, 2> _xs_previous_timestep; std::vector<std::unique_ptr<GlobalVector>> _xs_previous_timestep;
std::unique_ptr<ProcessLib::SurfaceFluxData> _surfaceflux; std::unique_ptr<ProcessLib::SurfaceFluxData> _surfaceflux;
}; };
......
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