Skip to content
Snippets Groups Projects
Commit d8c32656 authored by Kyle Klenk's avatar Kyle Klenk
Browse files

made new location for var_lookup structure definition

parent de54c2b7
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ int getSettingsTest(std::vector<std::string> keys, T return_value) { ...@@ -21,6 +21,7 @@ int getSettingsTest(std::vector<std::string> keys, T return_value) {
return 0; return 0;
} }
/** /**
* Return the time between to time points * Return the time between to time points
*/ */
......
#pragma once
struct iLookVarType {
// These values should be one index less than the Fortran structure
// This is so they align with C++ vectors that start at 0
int scalarv = -9999;
int wLength = -9999;
int midSnow = -9999;
int midSoil = -9999;
int midToto = -9999;
int ifcSnow = -9999;
int ifcSoil = -9999;
int ifcToto = -9999;
int parSoil = -9999;
int routing = -9999;
int outstat = -9999;
int unknown = -9999;
};
\ No newline at end of file
#include "global.hpp" #include "global.hpp"
#include <chrono> #include <chrono>
struct iLookVarType {
// These values should be one index less than the Fortran structure
// This is so they align with C++ vectors that start at 0
int scalarv = -9999;
int wLength = -9999;
int midSnow = -9999;
int midSoil = -9999;
int midToto = -9999;
int ifcSnow = -9999;
int ifcSoil = -9999;
int ifcToto = -9999;
int parSoil = -9999;
int routing = -9999;
int outstat = -9999;
int unknown = -9999;
};
double calculateTime(std::chrono::time_point<std::chrono::system_clock> start, double calculateTime(std::chrono::time_point<std::chrono::system_clock> start,
......
...@@ -42,7 +42,6 @@ behavior job_actor(stateful_actor<job_state>* self, int start_gru, int num_gru, ...@@ -42,7 +42,6 @@ behavior job_actor(stateful_actor<job_state>* self, int start_gru, int num_gru,
self->quit(); self->quit();
return {}; // Failure return {}; // Failure
} }
self->state.output_csv = getSettings(self->state.config_path, "JobActor", "outputCSV", self->state.output_csv = getSettings(self->state.config_path, "JobActor", "outputCSV",
self->state.output_csv).value_or(false); self->state.output_csv).value_or(false);
if (self->state.output_csv) { if (self->state.output_csv) {
...@@ -89,10 +88,10 @@ behavior job_actor(stateful_actor<job_state>* self, int start_gru, int num_gru, ...@@ -89,10 +88,10 @@ behavior job_actor(stateful_actor<job_state>* self, int start_gru, int num_gru,
return {}; // Failure return {}; // Failure
} }
initCsvOutputFile(self);
initCsvOutputFile(self);
// Spawn the file_access_actor. This will return the number of forcing files we are working with // Spawn the file_access_actor. This will return the number of forcing files we are working with
self->state.file_access_actor = self->spawn(file_access_actor, self->state.start_gru, self->state.num_gru, self->state.file_access_actor = self->spawn(file_access_actor, self->state.start_gru, self->state.num_gru,
......
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