Skip to content

Commit

Permalink
Add UNKNOWN_PROCESS constant for geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertnash committed May 2, 2024
1 parent 303725f commit bcd2009
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion Code/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ namespace hemelb

// TODO almost certainly filth.
constexpr distribn_t NO_VALUE = std::numeric_limits<distribn_t>::max();
constexpr int SITE_OR_BLOCK_SOLID = std::numeric_limits<int>::max();
constexpr int SITE_OR_BLOCK_SOLID = std::numeric_limits<int>::min();
constexpr int UNKNOWN_PROCESS = SITE_OR_BLOCK_SOLID + 1;

}

#endif //HEMELB_CONSTANTS_H
9 changes: 3 additions & 6 deletions Code/geometry/GeometrySite.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
#include "geometry/GeometrySiteLink.h"
#include "util/Vector3D.h"

namespace hemelb
namespace hemelb::geometry
{
namespace geometry
{
/***
* Model of the data for a site, as contained within a geometry file.
* this data will be broken up and placed in various arrays in hemelb::GmyReadResult::domain_type
Expand All @@ -25,11 +23,11 @@ namespace hemelb
*/
struct GeometrySite
{
public:
public:
//! Basic constructor for solid and fluid sites.
GeometrySite(bool siteIsFluid) :
targetProcessor(siteIsFluid ?
-1 :
UNKNOWN_PROCESS :
SITE_OR_BLOCK_SOLID), isFluid(siteIsFluid), wallNormalAvailable(false)
{
}
Expand All @@ -51,7 +49,6 @@ namespace hemelb
//! Wall normal approximation at the current fluid site.
util::Vector3D<float> wallNormal;
};
}
}

#endif /* HEMELB_GEOMETRY_SITEREADRESULT_H */

0 comments on commit bcd2009

Please sign in to comment.