Skip to content

Commit

Permalink
Adress comment Rene
Browse files Browse the repository at this point in the history
  • Loading branch information
MFraters committed Jun 13, 2024
1 parent 09397a6 commit 5890bf6
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace WorldBuilder
{
class World;
class Parameters;
template <unsigned int dim> class Point;
template <unsigned int dim> class Point;

/**
* This class is an interface for the specific plate tectonic feature classes,
Expand Down
2 changes: 1 addition & 1 deletion contrib/world_builder/include/world_builder/kd_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace WorldBuilder
const double &operator[](const bool y_axis) const
{
WBAssert(std::fabs((y_axis ? y : x) - *(&x+y_axis)) < std::numeric_limits<double>::epsilon(),
"Internal error: y_axis=" << y_axis << ", x=" << x << ", y=" << y <<", *(&x+y_axis)=" << *(&x+y_axis)
"Internal error: y_axis=" << y_axis << ", x=" << x << ", y=" << y <<", *(&x+y_axis)=" << *(&x+y_axis)
<< ", ((bool)y_axis ? x : y) - *(&x+y_axis)=" << fabs((y_axis ? x : y) - *(&x+y_axis)));
return *(&x+y_axis);
}
Expand Down
4 changes: 2 additions & 2 deletions contrib/world_builder/source/world_builder/utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ namespace WorldBuilder

// Need to convert to unsigned int, because MPI_Bcast does not support
// size_t or const unsigned int
unsigned int invalid_file_size = -1;
int invalid_file_size = -1;

if (!filestream)
{
Expand Down Expand Up @@ -1218,7 +1218,7 @@ namespace WorldBuilder

data_string = datastream.str();
WBAssertThrow(static_cast<long int>(data_string.size()) < std::numeric_limits<int>::max(),
"File to large to be send with MPI.");
"File is too large to be send with MPI.");
filesize = static_cast<int>(data_string.size());

// Distribute data_size and data across processes
Expand Down

0 comments on commit 5890bf6

Please sign in to comment.