Skip to content

Commit

Permalink
Fixed "is disturbance" criteria in spatial output flux writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Fellows committed Oct 5, 2021
1 parent aca7c0f commit 2c65c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/moja.flint/include/moja/flint/flux.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ inline bool Flux::isDisturbanceFlux(std::shared_ptr<IOperationResult> flux) {
}

auto& disturbanceData = flux->dataPackage().extract<const DynamicObject>();
for (const auto& disturbanceField : {"disturbance", "disturbance_type_code", "pre_disturbance_age_class"}) {
for (const auto& disturbanceField : {"disturbance", "disturbance_type_code"}) {
if (!disturbanceData.contains(disturbanceField)) {
return false;
}
Expand Down

0 comments on commit 2c65c58

Please sign in to comment.