Skip to content

Commit

Permalink
Merge pull request #2987 from boutproject/fix-ppcle64
Browse files Browse the repository at this point in the history
Use consistently signed char
  • Loading branch information
bendudson authored Oct 8, 2024
2 parents e3f21cd + 3d4de43 commit 3a91595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/bout/parallel_boundary_region.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ public:

/// Add a point to the boundary
void add_point(Ind3D ind, BoutReal x, BoutReal y, BoutReal z, BoutReal length,
char valid) {
signed char valid) {
bndry_points.push_back({ind, {x, y, z}, length, valid});
}
void add_point(int ix, int iy, int iz, BoutReal x, BoutReal y, BoutReal z,
BoutReal length, char valid) {
BoutReal length, signed char valid) {
bndry_points.push_back({xyz2ind(ix, iy, iz, localmesh), {x, y, z}, length, valid});
}

Expand All @@ -114,10 +114,10 @@ public:
BoutReal s_y() const { return bndry_position->intersection.s_y; }
BoutReal s_z() const { return bndry_position->intersection.s_z; }
BoutReal length() const { return bndry_position->length; }
char valid() const { return bndry_position->valid; }
signed char valid() const { return bndry_position->valid; }

// setter
void setValid(char val) { bndry_position->valid = val; }
void setValid(signed char val) { bndry_position->valid = val; }

bool contains(const BoundaryRegionPar& bndry) const {
return std::binary_search(
Expand Down

0 comments on commit 3a91595

Please sign in to comment.