mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
Fix initialization of transport_names in ChemistryInit and GridInit
This commit is contained in:
parent
2addcfbbf0
commit
1b52e25947
@ -6,6 +6,8 @@
|
||||
namespace poet {
|
||||
|
||||
void InitialList::initChemistry(const Rcpp::List &chem) {
|
||||
this->pqc_sol_order = this->transport_names;
|
||||
|
||||
if (chem.containsElementNamed("dht_species")) {
|
||||
this->dht_species = Rcpp::as<NamedVector<uint32_t>>(chem["dht_species"]);
|
||||
}
|
||||
|
||||
@ -165,7 +165,7 @@ void InitialList::prepareGrid(const Rcpp::List &grid_input) {
|
||||
std::vector<std::string> colnames =
|
||||
Rcpp::as<std::vector<std::string>>(this->initial_grid.names());
|
||||
|
||||
this->transport_names = this->pqc_sol_order = std::vector<std::string>(
|
||||
this->transport_names = std::vector<std::string>(
|
||||
colnames.begin() + 1,
|
||||
colnames.begin() + 1 + solution_count); // skip ID
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user