Skip to content

Commit

Permalink
Add macOS build support
Browse files Browse the repository at this point in the history
  • Loading branch information
zer011b committed Sep 21, 2023
1 parent 411cd0b commit 82c0016
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Source/Coordinate/GridCoordinate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#include "GridCoordinate3D.h"
#include "Assert.h"
#include "PAssert.h"

const char * coordinateTypeNames[] =
{
Expand Down
2 changes: 1 addition & 1 deletion Source/File-Management/BMPHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "Assert.h"
#include "PAssert.h"
#include "BMPHelper.h"

int BMPHelper::bitDepth = 24;
Expand Down
2 changes: 1 addition & 1 deletion Source/File-Management/BMPHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "EasyBMP.h"
#include "FieldValue.h"
#include "Assert.h"
#include "PAssert.h"
#include "Settings.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion Source/File-Management/Commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <string>

#include "Assert.h"
#include "PAssert.h"
#include "GridInterface.h"

extern std::string int64_to_string(int64_t value);
Expand Down
2 changes: 1 addition & 1 deletion Source/Grid/Clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef CLOCK_H
#define CLOCK_H

#include "Assert.h"
#include "PAssert.h"
#include "Settings.h"

#ifdef MPI_CLOCK
Expand Down
2 changes: 1 addition & 1 deletion Source/Grid/CudaGrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef CUDA_GRID_H
#define CUDA_GRID_H

#include "Assert.h"
#include "PAssert.h"
#include "FieldValue.h"
#include "GridCoordinate3D.h"
#include "Settings.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Grid/DynamicGrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <map>

#include "Assert.h"
#include "PAssert.h"
#include "FieldValue.h"
#include "Settings.h"
#include "Clock.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Grid/Grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <string>
#include <cstring>

#include "Assert.h"
#include "PAssert.h"
#include "FieldValue.h"
#include "GridCoordinate3D.h"
#include "Settings.h"
Expand Down
2 changes: 1 addition & 1 deletion Source/Helpers/Assert.cpp → Source/Helpers/PAssert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include "Assert.h"
#include "PAssert.h"

#include <cstdlib>
#include <execinfo.h>
Expand Down
8 changes: 4 additions & 4 deletions Source/Helpers/Assert.h → Source/Helpers/PAssert.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef ASSERT_H
#define ASSERT_H
#ifndef PASSERT_H
#define PASSERT_H

#include <cstdio>
#include <assert.h>
#include <cassert>

/*
* CUDA notes.
Expand Down Expand Up @@ -217,4 +217,4 @@ typedef double DOUBLE;

#include "CudaInclude.h"

#endif /* ASSERT_H */
#endif /* PASSERT_H */
2 changes: 1 addition & 1 deletion Source/Kernels/Complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef COMPLEX_H
#define COMPLEX_H

#include "Assert.h"
#include "PAssert.h"

#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion Source/Kernels/FieldValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef FIELD_VALUES_H
#define FIELD_VALUES_H

#include "Assert.h"
#include "PAssert.h"

/**
* Type of floating point values
Expand Down
2 changes: 1 addition & 1 deletion Source/Layout/Approximation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#include "Approximation.h"
#include "Assert.h"
#include "PAssert.h"
#include "PhysicsConst.h"

#include <cmath>
Expand Down
2 changes: 1 addition & 1 deletion Source/Layout/YeeGridLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define YEE_GRID_LAYOUT_H

#include "Approximation.h"
#include "Assert.h"
#include "PAssert.h"
#include "GridLayout.h"
#include "PhysicsConst.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/Settings/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <string>

#include "Assert.h"
#include "PAssert.h"
#include "FieldValue.h"
#include "PhysicsConst.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/perf-test-parallel-grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "Settings.h"

#include <ctime>
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "Clock.h"

#ifdef PARALLEL_GRID
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-complex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <complex>
#include <cassert>

#include "Assert.h"
#include "PAssert.h"
#include "Complex.h"

#ifndef CXX11_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-coordinate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "GridCoordinate3D.h"

#ifndef CXX11_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-cuda-grid.cu
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "GridCoordinate3D.h"
#include "CudaGrid.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-dumpers-loaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "GridCoordinate3D.h"
#include "Grid.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "GridCoordinate3D.h"
#include "Grid.h"

Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "YeeGridLayout.h"

#ifndef CXX11_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-parallel-grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <iostream>

#include "Assert.h"
#include "PAssert.h"
#include "Settings.h"

#ifndef PARALLEL_GRID
Expand Down
2 changes: 1 addition & 1 deletion Source/UnitTests/unit-test-settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <iostream>
#include <string>

#include "Assert.h"
#include "PAssert.h"
#include "Settings.h"

#ifndef DEBUG_INFO
Expand Down

0 comments on commit 82c0016

Please sign in to comment.