Skip to content

Commit

Permalink
removed accidental debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
bergm committed Nov 5, 2024
1 parent 6b5f4bc commit 02744ee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/run/run-monica-capnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ kj::Promise<void> RunMonica::run(RunContext context)
};

auto proms = kj::heapArrayBuilder<kj::Promise<void>>(2);
//DataAccessor da;
//J11Array soilLayers;

if (envR.hasTimeSeries()) {
auto ts = envR.getTimeSeries();
Expand Down Expand Up @@ -143,11 +141,7 @@ kj::Promise<void> RunMonica::run(RunContext context)
auto rs = context.getResults();
auto res = rs.initResult();
res.initStructure().setJson();
//auto v = res.initValue(8120);
std::cout << out.toString() << std::endl;
std::stringstream oss;
for(int i = 0; i < 8104; i++) oss << '.'; //v[i] = '.';
res.setValue(oss.str());//out.toString());
res.setValue(out.toString());
}, [context](auto &&e) mutable {
KJ_LOG(INFO, "Error while trying to gather soil and/or time series data: ", e);
auto rs = context.getResults();
Expand Down

0 comments on commit 02744ee

Please sign in to comment.