Skip to content

Commit

Permalink
Required fixes for serial build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattw-nws committed Aug 17, 2023
1 parent c7dd52a commit 6adf45c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions include/core/HY_Features.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ namespace hy_features {
*/
inline auto catchments(){return network.filter("cat");}

/**
* @brief An iterator of only the catchment feature ids from only the specified layer
*
* @return auto
*/
inline auto catchments(long lv) {
return network.filter("cat",lv);
}

/**
* @brief Return a set of levels that contain a catchment
*/
Expand Down
5 changes: 3 additions & 2 deletions src/NGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ bool is_subdivided_hydrofabric_wanted = false;
#include "parallel_utils.h"
#include "core/Partition_Parser.hpp"
#include <HY_Features_MPI.hpp>
#include <Layer.hpp>
#include <SurfaceLayer.hpp>

std::string PARTITION_PATH = "";
int mpi_rank;
int mpi_num_procs;
#endif

#include <Layer.hpp>
#include <SurfaceLayer.hpp>

std::unordered_map<std::string, std::ofstream> nexus_outfiles;

int main(int argc, char *argv[]) {
Expand Down

0 comments on commit 6adf45c

Please sign in to comment.