mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
Add support for importing and exporting initial grid in InitialList class
This commit is contained in:
parent
7d4c14c356
commit
4fc0d5547b
@ -31,6 +31,9 @@ void InitialList::importList(const Rcpp::List &setup) {
|
|||||||
this->porosity = Rcpp::as<std::vector<double>>(
|
this->porosity = Rcpp::as<std::vector<double>>(
|
||||||
setup[static_cast<int>(ExportList::GRID_POROSITY)]);
|
setup[static_cast<int>(ExportList::GRID_POROSITY)]);
|
||||||
|
|
||||||
|
this->initial_grid =
|
||||||
|
Rcpp::List(setup[static_cast<int>(ExportList::GRID_INITIAL)]);
|
||||||
|
|
||||||
this->transport_names = Rcpp::as<std::vector<std::string>>(
|
this->transport_names = Rcpp::as<std::vector<std::string>>(
|
||||||
setup[static_cast<int>(ExportList::DIFFU_TRANSPORT)]);
|
setup[static_cast<int>(ExportList::DIFFU_TRANSPORT)]);
|
||||||
this->boundaries =
|
this->boundaries =
|
||||||
@ -61,6 +64,7 @@ Rcpp::List InitialList::exportList() {
|
|||||||
out[static_cast<int>(ExportList::GRID_CONSTANT)] =
|
out[static_cast<int>(ExportList::GRID_CONSTANT)] =
|
||||||
Rcpp::wrap(this->constant_cells);
|
Rcpp::wrap(this->constant_cells);
|
||||||
out[static_cast<int>(ExportList::GRID_POROSITY)] = Rcpp::wrap(this->porosity);
|
out[static_cast<int>(ExportList::GRID_POROSITY)] = Rcpp::wrap(this->porosity);
|
||||||
|
out[static_cast<int>(ExportList::GRID_INITIAL)] = this->initial_grid;
|
||||||
|
|
||||||
out[static_cast<int>(ExportList::DIFFU_TRANSPORT)] =
|
out[static_cast<int>(ExportList::DIFFU_TRANSPORT)] =
|
||||||
Rcpp::wrap(this->transport_names);
|
Rcpp::wrap(this->transport_names);
|
||||||
|
|||||||
@ -35,6 +35,7 @@ private:
|
|||||||
GRID_SPATIAL,
|
GRID_SPATIAL,
|
||||||
GRID_CONSTANT,
|
GRID_CONSTANT,
|
||||||
GRID_POROSITY,
|
GRID_POROSITY,
|
||||||
|
GRID_INITIAL,
|
||||||
DIFFU_TRANSPORT,
|
DIFFU_TRANSPORT,
|
||||||
DIFFU_BOUNDARIES,
|
DIFFU_BOUNDARIES,
|
||||||
DIFFU_ALPHA_X,
|
DIFFU_ALPHA_X,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user