LUMA
LUMA copied to clipboard
Picking definitions in tests does not work
In file included from ../../../src/../inc/stdafx.h:205,
from ../../../src/BFLBody.cpp:23:
../../../src/../inc/GridManager.h:59:28: error: 'L_NUM_LEVELS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:59:43: error: 'L_NUM_REGIONS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:32: error: 'L_NUM_LEVELS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:47: error: 'L_NUM_REGIONS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:32: error: 'L_NUM_LEVELS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:47: error: 'L_NUM_REGIONS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:207:
../../../src/../inc/MpiManager.h:115:28: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
115 | int neighbour_rank[L_MPI_DIRS]; ///< Neighbour rank number for each direction in Cartesian topology
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:116:30: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:116:38: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:139:25: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
139 | int rank_coords[L_DIMS]; ///< Coordinates in MPI Cartesian topology
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:172:35: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
172 | MPI_Request send_requests[L_MPI_DIRS]; ///< Array of request structures for handles to posted ISends
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:173:30: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
173 | MPI_Status send_stat[L_MPI_DIRS]; ///< Array of statuses for each ISend
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:179:26: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
179 | int size[L_MPI_DIRS]; ///< Buffer sizes for each direction
| ^~~~~~~~~~
| L_MPI_dir
In file included from ../../../src/../inc/GridUtils.h:27,
from ../../../src/../inc/stdafx.h:208:
../../../src/../inc/GridObj.h:185:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
185 | std::vector<int> direction, int order, int i, int j, int k, int p = NULL, int max = 1);
| ^~~~
../../../src/../inc/GridUtils.h:44:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~
| L_dims
../../../src/../inc/GridUtils.h:44:46: error: 'L_NUM_VELS' was not declared in this scope
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:45:40: error: 'L_NUM_VELS' was not declared in this scope
45 | static const int dir_opposites[L_NUM_VELS]; ///< Array with hardcoded direction numbering for bounce-back opposites
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:62:42: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
62 | static double vecnorm(double vec[L_DIMS]); // Function: vecnorm + overloads
| ^~~~~~
| L_dims
In file included from ../../../src/../inc/stdafx.h:209:
../../../src/../inc/GridUnits.h: In static member function 'static double GridUnits::ulat2uphys(T, GridObj*)':
../../../src/../inc/GridUnits.h:58:55: error: 'L_PHYSICAL_U' was not declared in this scope
58 | return (u_lattice * currentGrid->dh * L_PHYSICAL_U) / currentGrid->dt;
| ^~~~~~~~~~~~
../../../src/../inc/stdafx.h: At global scope:
../../../src/../inc/stdafx.h:217:23: error: 'L_NUM_VELS' was not declared in this scope
217 | extern const int c[3][L_NUM_VELS]; ///< Lattice velocities
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:218:24: error: 'L_NUM_VELS' was not declared in this scope
218 | extern const int c_opt[L_NUM_VELS][3]; ///< Lattice velocities optimised arrangement
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:219:23: error: 'L_NUM_VELS' was not declared in this scope
219 | extern const double w[L_NUM_VELS]; ///< Quadrature weights
| ^~~~~~~~~~
In file included from ../../../src/../inc/BFLBody.h:27,
from ../../../src/BFLBody.cpp:24:
../../../src/../inc/Body.h: In constructor 'Body<MarkerType>::Body(GridObj*, int, std::vector<double>&, double, double, std::vector<double>&)':
../../../src/../inc/Body.h:463:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
463 | std::vector<double> position(L_DIMS, 0);
| ^~~~~~
| L_dims
../../../src/BFLBody.cpp: In member function 'void BFLBody::initialise()':
../../../src/BFLBody.cpp:100:18: error: 'L_NUM_VELS' was not declared in this scope
100 | Q.resize(L_NUM_VELS * markers.size(), -1.0);
| ^~~~~~~~~~
../../../src/BFLBody.cpp: In member function 'void BFLBody::computeQ(int, int, int, GridObj*)':
../../../src/BFLBody.cpp:337:41: error: 'L_NUM_VELS' was not declared in this scope
337 | for (int vel = 0; vel < L_NUM_VELS - 1; vel+=2) {
| ^~~~~~~~~~
../../../src/BFLBody.cpp:340:39: error: 'c' was not declared in this scope; did you mean 'cs'?
340 | dest_i = (i + c[0][vel] + g->N_lim) % g->N_lim;
| ^
| cs
../../../src/BFLBody.cpp: In member function 'void BFLBody::computeQ(int, int, GridObj*)':
../../../src/BFLBody.cpp:490:41: error: 'L_NUM_VELS' was not declared in this scope
490 | for (int vel = 0; vel < L_NUM_VELS - 1; vel++) {
| ^~~~~~~~~~
../../../src/BFLBody.cpp:493:39: error: 'c' was not declared in this scope; did you mean 'cs'?
493 | dest_i = (i + c[0][vel] + g->N_lim) % g->N_lim;
| ^
| cs
In file included from ../../../src/../inc/stdafx.h:205,
from ../../../src/BFLMarker.cpp:23:
../../../src/../inc/GridManager.h:59:28: error: 'L_NUM_LEVELS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:59:43: error: 'L_NUM_REGIONS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:32: error: 'L_NUM_LEVELS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:47: error: 'L_NUM_REGIONS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:32: error: 'L_NUM_LEVELS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:47: error: 'L_NUM_REGIONS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:207:
../../../src/../inc/MpiManager.h:115:28: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
115 | int neighbour_rank[L_MPI_DIRS]; ///< Neighbour rank number for each direction in Cartesian topology
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:116:30: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:116:38: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:139:25: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
139 | int rank_coords[L_DIMS]; ///< Coordinates in MPI Cartesian topology
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:172:35: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
172 | MPI_Request send_requests[L_MPI_DIRS]; ///< Array of request structures for handles to posted ISends
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:173:30: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
173 | MPI_Status send_stat[L_MPI_DIRS]; ///< Array of statuses for each ISend
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:179:26: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
179 | int size[L_MPI_DIRS]; ///< Buffer sizes for each direction
| ^~~~~~~~~~
| L_MPI_dir
In file included from ../../../src/../inc/GridUtils.h:27,
from ../../../src/../inc/stdafx.h:208:
../../../src/../inc/GridObj.h:185:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
185 | std::vector<int> direction, int order, int i, int j, int k, int p = NULL, int max = 1);
| ^~~~
../../../src/../inc/GridUtils.h:44:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~
| L_dims
../../../src/../inc/GridUtils.h:44:46: error: 'L_NUM_VELS' was not declared in this scope
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:45:40: error: 'L_NUM_VELS' was not declared in this scope
45 | static const int dir_opposites[L_NUM_VELS]; ///< Array with hardcoded direction numbering for bounce-back opposites
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:62:42: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
62 | static double vecnorm(double vec[L_DIMS]); // Function: vecnorm + overloads
| ^~~~~~
| L_dims
In file included from ../../../src/../inc/stdafx.h:209:
../../../src/../inc/GridUnits.h: In static member function 'static double GridUnits::ulat2uphys(T, GridObj*)':
../../../src/../inc/GridUnits.h:58:55: error: 'L_PHYSICAL_U' was not declared in this scope
58 | return (u_lattice * currentGrid->dh * L_PHYSICAL_U) / currentGrid->dt;
| ^~~~~~~~~~~~
../../../src/../inc/stdafx.h: At global scope:
../../../src/../inc/stdafx.h:217:23: error: 'L_NUM_VELS' was not declared in this scope
217 | extern const int c[3][L_NUM_VELS]; ///< Lattice velocities
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:218:24: error: 'L_NUM_VELS' was not declared in this scope
218 | extern const int c_opt[L_NUM_VELS][3]; ///< Lattice velocities optimised arrangement
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:219:23: error: 'L_NUM_VELS' was not declared in this scope
219 | extern const double w[L_NUM_VELS]; ///< Quadrature weights
| ^~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:205,
from ../../../src/FEMBody.cpp:23:
../../../src/../inc/GridManager.h:59:28: error: 'L_NUM_LEVELS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:59:43: error: 'L_NUM_REGIONS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:32: error: 'L_NUM_LEVELS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:47: error: 'L_NUM_REGIONS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:32: error: 'L_NUM_LEVELS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:47: error: 'L_NUM_REGIONS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:207:
../../../src/../inc/MpiManager.h:115:28: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
115 | int neighbour_rank[L_MPI_DIRS]; ///< Neighbour rank number for each direction in Cartesian topology
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:116:30: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:116:38: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:139:25: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
139 | int rank_coords[L_DIMS]; ///< Coordinates in MPI Cartesian topology
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:172:35: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
172 | MPI_Request send_requests[L_MPI_DIRS]; ///< Array of request structures for handles to posted ISends
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:173:30: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
173 | MPI_Status send_stat[L_MPI_DIRS]; ///< Array of statuses for each ISend
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:179:26: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
179 | int size[L_MPI_DIRS]; ///< Buffer sizes for each direction
| ^~~~~~~~~~
| L_MPI_dir
In file included from ../../../src/../inc/GridUtils.h:27,
from ../../../src/../inc/stdafx.h:208:
../../../src/../inc/GridObj.h:185:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
185 | std::vector<int> direction, int order, int i, int j, int k, int p = NULL, int max = 1);
| ^~~~
../../../src/../inc/GridUtils.h:44:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~
| L_dims
../../../src/../inc/GridUtils.h:44:46: error: 'L_NUM_VELS' was not declared in this scope
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:45:40: error: 'L_NUM_VELS' was not declared in this scope
45 | static const int dir_opposites[L_NUM_VELS]; ///< Array with hardcoded direction numbering for bounce-back opposites
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:62:42: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
62 | static double vecnorm(double vec[L_DIMS]); // Function: vecnorm + overloads
| ^~~~~~
| L_dims
. . .
../../../src/GridObj_init_grids.cpp:1021:100: error: 'L_WALL_RIGHT' was not declared in this scope
1021 | LBM_setBCPrecedence(LatTyp(i, j, k, M_lim, K_lim), L_WALL_RIGHT);
| ^~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1068:32: error: 'L_WALL_THICKNESS_BOTTOM' was not declared in this scope
1068 | if (YPos[j] <= L_WALL_THICKNESS_BOTTOM)
| ^~~~~~~~~~~~~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1075:100: error: 'L_WALL_BOTTOM' was not declared in this scope
1075 | LBM_setBCPrecedence(LatTyp(i, j, k, M_lim, K_lim), L_WALL_BOTTOM);
| ^~~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1085:60: error: 'class GridManager' has no member named 'global_edges'
1085 | if (YPos[j] >= GridManager::getInstance()->global_edges[eYMax][0] - L_WALL_THICKNESS_TOP)
| ^~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1085:85: error: 'L_WALL_THICKNESS_TOP' was not declared in this scope
1085 | if (YPos[j] >= GridManager::getInstance()->global_edges[eYMax][0] - L_WALL_THICKNESS_TOP)
| ^~~~~~~~~~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1092:100: error: 'L_WALL_TOP' was not declared in this scope
1092 | LBM_setBCPrecedence(LatTyp(i, j, k, M_lim, K_lim), L_WALL_TOP);
| ^~~~~~~~~~
../../../src/GridObj_init_grids.cpp: In member function 'void GridObj::LBM_initRefinedLab(GridObj&)':
../../../src/GridObj_init_grids.cpp:1119:46: error: 'L_NUM_LEVELS' was not declared in this scope
1119 | int gm_idx = level + region_number * L_NUM_LEVELS;
| ^~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp:1123:32: error: 'class GridManager' has no member named 'global_edges'
1123 | edges[d] = gm->global_edges[d][gm_idx];
| ^~~~~~~~~~~~
../../../src/GridObj_init_grids.cpp: In member function 'void GridObj::_LBM_initSetInletProfile()':
../../../src/GridObj_init_grids.cpp:1354:47: error: 'L_UX0' was not declared in this scope
1354 | ux_in[j] = GridUnits::ud2ulbm(L_UX0, this);
| ^~~~~
../../../src/GridObj_init_grids.cpp:1355:47: error: 'L_UY0' was not declared in this scope
1355 | uy_in[j] = GridUnits::ud2ulbm(L_UY0, this);
| ^~~~~
../../../src/GridObj_init_grids.cpp:1356:47: error: 'L_UZ0' was not declared in this scope
1356 | uz_in[j] = GridUnits::ud2ulbm(L_UZ0, this);
| ^~~~~
In file included from ../../../src/../inc/stdafx.h:205,
from ../../../src/GridObj_ops_io.cpp:25:
../../../src/../inc/GridManager.h:59:28: error: 'L_NUM_LEVELS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:59:43: error: 'L_NUM_REGIONS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:32: error: 'L_NUM_LEVELS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:47: error: 'L_NUM_REGIONS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:32: error: 'L_NUM_LEVELS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:47: error: 'L_NUM_REGIONS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:207:
../../../src/../inc/MpiManager.h:115:28: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
115 | int neighbour_rank[L_MPI_DIRS]; ///< Neighbour rank number for each direction in Cartesian topology
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:116:30: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:116:38: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:139:25: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
139 | int rank_coords[L_DIMS]; ///< Coordinates in MPI Cartesian topology
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:172:35: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
172 | MPI_Request send_requests[L_MPI_DIRS]; ///< Array of request structures for handles to posted ISends
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:173:30: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
173 | MPI_Status send_stat[L_MPI_DIRS]; ///< Array of statuses for each ISend
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:179:26: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
179 | int size[L_MPI_DIRS]; ///< Buffer sizes for each direction
| ^~~~~~~~~~
| L_MPI_dir
In file included from ../../../src/../inc/GridUtils.h:27,
from ../../../src/../inc/stdafx.h:208:
../../../src/../inc/GridObj.h:185:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
185 | std::vector<int> direction, int order, int i, int j, int k, int p = NULL, int max = 1);
| ^~~~
../../../src/../inc/GridUtils.h:44:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~
| L_dims
../../../src/../inc/GridUtils.h:44:46: error: 'L_NUM_VELS' was not declared in this scope
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:45:40: error: 'L_NUM_VELS' was not declared in this scope
45 | static const int dir_opposites[L_NUM_VELS]; ///< Array with hardcoded direction numbering for bounce-back opposites
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:62:42: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
62 | static double vecnorm(double vec[L_DIMS]); // Function: vecnorm + overloads
| ^~~~~~
| L_dims
In file included from ../../../src/../inc/stdafx.h:209:
../../../src/../inc/GridUnits.h: In static member function 'static double GridUnits::ulat2uphys(T, GridObj*)':
../../../src/../inc/GridUnits.h:58:55: error: 'L_PHYSICAL_U' was not declared in this scope
58 | return (u_lattice * currentGrid->dh * L_PHYSICAL_U) / currentGrid->dt;
| ^~~~~~~~~~~~
../../../src/../inc/stdafx.h: At global scope:
../../../src/../inc/stdafx.h:217:23: error: 'L_NUM_VELS' was not declared in this scope
217 | extern const int c[3][L_NUM_VELS]; ///< Lattice velocities
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:218:24: error: 'L_NUM_VELS' was not declared in this scope
218 | extern const int c_opt[L_NUM_VELS][3]; ///< Lattice velocities optimised arrangement
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:219:23: error: 'L_NUM_VELS' was not declared in this scope
219 | extern const double w[L_NUM_VELS]; ///< Quadrature weights
| ^~~~~~~~~~
In file included from ../../../src/../inc/IBBody.h:29,
from ../../../src/../inc/ObjectManager.h:30,
from ../../../src/GridObj_ops_io.cpp:27:
../../../src/../inc/Body.h: In constructor 'Body<MarkerType>::Body(GridObj*, int, std::vector<double>&, double, double, std::vector<double>&)':
../../../src/../inc/Body.h:463:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
463 | std::vector<double> position(L_DIMS, 0);
| ^~~~~~
| L_dims
In file included from ../../../src/GridObj_ops_io.cpp:28:
../../../src/../inc/hdf5luma.h: In function 'void hdf5_writeDataSet(hid_t&, hid_t&, hid_t&, eHdf5SlabType, GridObj*, T*, hid_t, bool*, int, double*, HDFstruct)':
../../../src/../inc/hdf5luma.h:74:50: error: 'L_NUM_LEVELS' was not declared in this scope
74 | else idx = g->level + g->region_number * L_NUM_LEVELS;
| ^~~~~~~~~~~~
../../../src/../inc/hdf5luma.h:128:26: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
128 | hsize_t f_offset[L_DIMS], f_block[L_DIMS], f_count[L_DIMS], f_stride[L_DIMS];
| ^~~~~~
| L_dims
../../../src/../inc/hdf5luma.h:150:42: error: 'f_offset' was not declared in this scope; did you mean 'm_offset'?
150 | for (int d = 0; d < L_DIMS; d++) f_offset[d] = 0;
| ^~~~~~~~
| m_offset
../../../src/../inc/hdf5luma.h:155:9: error: 'f_block' was not declared in this scope; did you mean 'm_block'?
155 | f_block[0] = i_end - i_start + 1;
| ^~~~~~~
| m_block
../../../src/../inc/hdf5luma.h:158:9: error: 'f_count' was not declared in this scope; did you mean 'm_count'?
158 | f_count[0] = 1;
| ^~~~~~~
| m_count
../../../src/../inc/hdf5luma.h:161:9: error: 'f_stride' was not declared in this scope; did you mean 'm_stride'?
161 | f_stride[0] = f_block[0];
| ^~~~~~~~
| m_stride
../../../src/../inc/hdf5luma.h:187:65: error: 'f_offset' was not declared in this scope; did you mean 'm_offset'?
187 | status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, f_offset, f_stride, f_count, f_block);
| ^~~~~~~~
| m_offset
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::io_textout(std::string)':
../../../src/GridObj_ops_io.cpp:45:30: error: 'L_OUTPUT_PRECISION' was not declared in this scope
45 | gridoutput.precision(L_OUTPUT_PRECISION);
| ^~~~~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:53:13: error: 'L_NUM_LEVELS' was not declared in this scope
53 | if (L_NUM_LEVELS == 0) ex_str = to_string(0);
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:55:13: error: 'L_NUM_LEVELS' was not declared in this scope
55 | if (L_NUM_LEVELS == 0) NumReg_str = to_string(0);
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:60:52: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
60 | + string("D") + to_string(L_DIMS)
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:153:40: error: 'L_NUM_VELS' was not declared in this scope
153 | for (size_t v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp:176:40: error: 'L_NUM_VELS' was not declared in this scope
176 | for (size_t v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::io_fgaout()':
../../../src/GridObj_ops_io.cpp:278:14: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
278 | if ((L_DIMS == 2) || (L_DIMS == 3)){
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::_io_fgaout(int)':
../../../src/GridObj_ops_io.cpp:304:30: error: 'L_OUTPUT_PRECISION' was not declared in this scope
304 | gridoutput.precision(L_OUTPUT_PRECISION);
| ^~~~~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:315:13: error: 'L_NUM_LEVELS' was not declared in this scope
315 | if (L_NUM_LEVELS == 0) NumReg_str = to_string(0);
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:320:43: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
320 | + string("D") + to_string(L_DIMS)
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::io_restart(eIOFlag)':
../../../src/GridObj_ops_io.cpp:455:57: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
455 | for (v = 0; v < L_DIMS; v++) {
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:464:57: error: 'L_NUM_VELS' was not declared in this scope
464 | for (v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp:491:29: error: 'L_NUM_LEVELS' was not declared in this scope
491 | if (level < L_NUM_LEVELS && subGrid.size()) {
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:553:41: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
553 | for (v = 0; v < L_DIMS; v++) {
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:563:41: error: 'L_NUM_VELS' was not declared in this scope
563 | for (v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::io_probeOutput()':
../../../src/GridObj_ops_io.cpp:612:29: error: 'L_OUTPUT_PRECISION' was not declared in this scope
612 | probefile.precision(L_OUTPUT_PRECISION);
| ^~~~~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:623:23: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
623 | double pspace[L_DIMS];
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:624:13: error: 'cNumProbes' was not declared in this scope; did you mean 'nProbes'?
624 | if (cNumProbes[0] > 1)
| ^~~~~~~~~~
| nProbes
../../../src/GridObj_ops_io.cpp:625:17: error: 'pspace' was not declared in this scope; did you mean 'isspace'?
625 | pspace[0] = abs(cProbeLimsX[1] - cProbeLimsX[0]) / (cNumProbes[0] - 1);
| ^~~~~~
| isspace
../../../src/GridObj_ops_io.cpp:625:33: error: 'cProbeLimsX' was not declared in this scope; did you mean 'zProbeLims'?
625 | pspace[0] = abs(cProbeLimsX[1] - cProbeLimsX[0]) / (cNumProbes[0] - 1);
| ^~~~~~~~~~~
| zProbeLims
../../../src/GridObj_ops_io.cpp:626:13: error: 'cNumProbes' was not declared in this scope; did you mean 'nProbes'?
626 | if (cNumProbes[1] > 1)
| ^~~~~~~~~~
| nProbes
../../../src/GridObj_ops_io.cpp:627:17: error: 'pspace' was not declared in this scope; did you mean 'isspace'?
627 | pspace[1] = abs(cProbeLimsY[1] - cProbeLimsY[0]) / (cNumProbes[1] - 1);
| ^~~~~~
| isspace
../../../src/GridObj_ops_io.cpp:627:33: error: 'cProbeLimsY' was not declared in this scope; did you mean 'zProbeLims'?
627 | pspace[1] = abs(cProbeLimsY[1] - cProbeLimsY[0]) / (cNumProbes[1] - 1);
| ^~~~~~~~~~~
| zProbeLims
../../../src/GridObj_ops_io.cpp:634:25: error: 'cNumProbes' was not declared in this scope; did you mean 'nProbes'?
634 | for (i = 0; i < cNumProbes[0]; i++) {
| ^~~~~~~~~~
| nProbes
../../../src/GridObj_ops_io.cpp:635:21: error: 'cProbeLimsX' was not declared in this scope; did you mean 'zProbeLims'?
635 | x = cProbeLimsX[0] + i*pspace[0];
| ^~~~~~~~~~~
| zProbeLims
../../../src/GridObj_ops_io.cpp:635:40: error: 'pspace' was not declared in this scope; did you mean 'isspace'?
635 | x = cProbeLimsX[0] + i*pspace[0];
| ^~~~~~
| isspace
../../../src/GridObj_ops_io.cpp:638:29: error: 'cProbeLimsY' was not declared in this scope; did you mean 'zProbeLims'?
638 | y = cProbeLimsY[0] + j*pspace[1];
| ^~~~~~~~~~~
| zProbeLims
../../../src/GridObj_ops_io.cpp:650:48: error: 'L_NUM_LEVELS' was not declared in this scope
650 | for (int lev = L_NUM_LEVELS; lev >= 0; --lev)
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:652:65: error: 'L_NUM_REGIONS' was not declared in this scope
652 | for (int reg = 0; reg < L_NUM_REGIONS; ++reg)
| ^~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp: In member function 'void GridObj::io_lite(double, std::string)':
../../../src/GridObj_ops_io.cpp:718:28: error: 'L_OUTPUT_PRECISION' was not declared in this scope
718 | litefile.precision(L_OUTPUT_PRECISION);
| ^~~~~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:748:57: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
748 | for (v = 0; v < L_DIMS; v++) {
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:756:57: error: 'L_NUM_VELS' was not declared in this scope
756 | for (v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp:759:57: error: 'L_NUM_VELS' was not declared in this scope
759 | for (v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_io.cpp:803:13: error: 'L_NUM_LEVELS' was not declared in this scope
803 | if (L_NUM_LEVELS > level) {
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp: In member function 'int GridObj::io_hdf5(double)':
../../../src/GridObj_ops_io.cpp:830:45: error: 'class GridManager' has no member named 'global_edges'
830 | minEdges[eXDirection] = gm->global_edges[eXMin][level + region_number * L_NUM_LEVELS];
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:830:89: error: 'L_NUM_LEVELS' was not declared in this scope
830 | minEdges[eXDirection] = gm->global_edges[eXMin][level + region_number * L_NUM_LEVELS];
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:831:45: error: 'class GridManager' has no member named 'global_edges'
831 | minEdges[eYDirection] = gm->global_edges[eYMin][level + region_number * L_NUM_LEVELS];
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:832:45: error: 'class GridManager' has no member named 'global_edges'
832 | minEdges[eZDirection] = gm->global_edges[eZMin][level + region_number * L_NUM_LEVELS];
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:865:23: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
865 | hsize_t dimsf[L_DIMS];
| ^~~~~~
| L_dims
../../../src/GridObj_ops_io.cpp:893:97: error: 'L_NUM_LEVELS' was not declared in this scope
893 | TL_present[eXDirection] = gm->subgrid_tlayer_key[eXMin][level + region_number * L_NUM_LEVELS - 1];
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:965:51: error: 'L_NUM_LEVELS' was not declared in this scope
965 | int idx = level + region_number * L_NUM_LEVELS;
| ^~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:966:17: error: 'dimsf' was not declared in this scope; did you mean 'dimsa'?
966 | dimsf[0] = gm->global_size[eXDirection][idx];
| ^~~~~
| dimsa
../../../src/GridObj_ops_io.cpp:966:32: error: 'class GridManager' has no member named 'global_size'; did you mean 'local_size'?
966 | dimsf[0] = gm->global_size[eXDirection][idx];
| ^~~~~~~~~~~
| local_size
../../../src/GridObj_ops_io.cpp:967:32: error: 'class GridManager' has no member named 'global_size'; did you mean 'local_size'?
967 | dimsf[1] = gm->global_size[eYDirection][idx];
| ^~~~~~~~~~~
| local_size
../../../src/GridObj_ops_io.cpp:1040:25: error: 'buffer_int_array' was not declared in this scope; did you mean 'buffer_int'?
1040 | buffer_int_array[0] = static_cast<int>(dimsf[0]);
| ^~~~~~~~~~~~~~~~
| buffer_int
../../../src/GridObj_ops_io.cpp:1058:38: error: 'L_TOTAL_TIMESTEPS' was not declared in this scope
1058 | buffer_int = L_TOTAL_TIMESTEPS;
| ^~~~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:1068:38: error: 'L_GRID_OUT_FREQ' was not declared in this scope
1068 | buffer_int = L_GRID_OUT_FREQ;
| ^~~~~~~~~~~~~~~
../../../src/GridObj_ops_io.cpp:1092:38: error: 'L_NUM_REGIONS' was not declared in this scope
1092 | buffer_int = L_NUM_REGIONS;
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:205,
from ../../../src/GridObj_ops_lbm.cpp:27:
../../../src/../inc/GridManager.h:59:28: error: 'L_NUM_LEVELS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:59:43: error: 'L_NUM_REGIONS' was not declared in this scope
59 | int global_size[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:32: error: 'L_NUM_LEVELS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:68:47: error: 'L_NUM_REGIONS' was not declared in this scope
68 | double global_edges[6][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:32: error: 'L_NUM_LEVELS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~
../../../src/../inc/GridManager.h:87:47: error: 'L_NUM_REGIONS' was not declared in this scope
87 | bool periodic_flags[3][L_NUM_LEVELS * L_NUM_REGIONS + 1];
| ^~~~~~~~~~~~~
In file included from ../../../src/../inc/stdafx.h:207:
../../../src/../inc/MpiManager.h:115:28: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
115 | int neighbour_rank[L_MPI_DIRS]; ///< Neighbour rank number for each direction in Cartesian topology
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:116:30: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:116:38: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
116 | int neighbour_coords[L_DIMS][L_MPI_DIRS]; ///< Coordinates in MPI topology of neighbour ranks
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:139:25: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
139 | int rank_coords[L_DIMS]; ///< Coordinates in MPI Cartesian topology
| ^~~~~~
| L_dims
../../../src/../inc/MpiManager.h:172:35: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
172 | MPI_Request send_requests[L_MPI_DIRS]; ///< Array of request structures for handles to posted ISends
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:173:30: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
173 | MPI_Status send_stat[L_MPI_DIRS]; ///< Array of statuses for each ISend
| ^~~~~~~~~~
| L_MPI_dir
../../../src/../inc/MpiManager.h:179:26: error: 'L_MPI_DIRS' was not declared in this scope; did you mean 'L_MPI_dir'?
179 | int size[L_MPI_DIRS]; ///< Buffer sizes for each direction
| ^~~~~~~~~~
| L_MPI_dir
In file included from ../../../src/../inc/GridUtils.h:27,
from ../../../src/../inc/stdafx.h:208:
../../../src/../inc/GridObj.h:185:93: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
185 | std::vector<int> direction, int order, int i, int j, int k, int p = NULL, int max = 1);
| ^~~~
../../../src/../inc/GridUtils.h:44:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~
| L_dims
../../../src/../inc/GridUtils.h:44:46: error: 'L_NUM_VELS' was not declared in this scope
44 | static const int dir_reflect[L_DIMS][L_NUM_VELS]; ///< Array with hardcoded direction numbering for specular reflection
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:45:40: error: 'L_NUM_VELS' was not declared in this scope
45 | static const int dir_opposites[L_NUM_VELS]; ///< Array with hardcoded direction numbering for bounce-back opposites
| ^~~~~~~~~~
../../../src/../inc/GridUtils.h:62:42: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
62 | static double vecnorm(double vec[L_DIMS]); // Function: vecnorm + overloads
| ^~~~~~
| L_dims
In file included from ../../../src/../inc/stdafx.h:209:
../../../src/../inc/GridUnits.h: In static member function 'static double GridUnits::ulat2uphys(T, GridObj*)':
../../../src/../inc/GridUnits.h:58:55: error: 'L_PHYSICAL_U' was not declared in this scope
58 | return (u_lattice * currentGrid->dh * L_PHYSICAL_U) / currentGrid->dt;
| ^~~~~~~~~~~~
../../../src/../inc/stdafx.h: At global scope:
../../../src/../inc/stdafx.h:217:23: error: 'L_NUM_VELS' was not declared in this scope
217 | extern const int c[3][L_NUM_VELS]; ///< Lattice velocities
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:218:24: error: 'L_NUM_VELS' was not declared in this scope
218 | extern const int c_opt[L_NUM_VELS][3]; ///< Lattice velocities optimised arrangement
| ^~~~~~~~~~
../../../src/../inc/stdafx.h:219:23: error: 'L_NUM_VELS' was not declared in this scope
219 | extern const double w[L_NUM_VELS]; ///< Quadrature weights
| ^~~~~~~~~~
In file included from ../../../src/../inc/IBBody.h:29,
from ../../../src/../inc/ObjectManager.h:30,
from ../../../src/GridObj_ops_lbm.cpp:30:
../../../src/../inc/Body.h: In constructor 'Body<MarkerType>::Body(GridObj*, int, std::vector<double>&, double, double, std::vector<double>&)':
../../../src/../inc/Body.h:463:38: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
463 | std::vector<double> position(L_DIMS, 0);
| ^~~~~~
| L_dims
../../../src/GridObj_ops_lbm.cpp: In member function 'void GridObj::LBM_kbcCollide(int, int, int, IVector<double>&)':
../../../src/GridObj_ops_lbm.cpp:47:19: error: 'L_NUM_VELS' was not declared in this scope
47 | double ds[L_NUM_VELS], dh[L_NUM_VELS], gamma;
| ^~~~~~~~~~
../../../src/GridObj_ops_lbm.cpp:181:61: error: 'c' was not declared in this scope; did you mean 'cs'?
181 | M20 += f(i,j,k,v,M_lim,K_lim,L_NUM_VELS) * (c[0][v] * c[0][v]);
| ^
| cs
../../../src/GridObj_ops_lbm.cpp:194:21: error: 'c' was not declared in this scope; did you mean 'cs'?
194 | if (c[0][v] == 0 && c[1][v] == 0) {
| ^
| cs
../../../src/GridObj_ops_lbm.cpp:197:25: error: 'ds' was not declared in this scope; did you mean 'dh'?
197 | ds[v] = 0.0;
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:202:25: error: 'ds' was not declared in this scope; did you mean 'dh'?
202 | ds[v] = ( 0.25 * (M20 - M02) ) -
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:208:25: error: 'ds' was not declared in this scope; did you mean 'dh'?
208 | ds[v] = ( -0.25 * (M20 - M02) ) -
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:214:25: error: 'ds' was not declared in this scope; did you mean 'dh'?
214 | ds[v] = ( 0.25 * c[0][v] * c[1][v] * M11 ) -
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:221:19: error: invalid types 'double[int]' for array subscript
221 | dh[v] = f(i,j,k,v,M_lim,K_lim,L_NUM_VELS) - feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS) - ds[v];
| ^
../../../src/GridObj_ops_lbm.cpp:221:99: error: 'ds' was not declared in this scope; did you mean 'dh'?
221 | dh[v] = f(i,j,k,v,M_lim,K_lim,L_NUM_VELS) - feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS) - ds[v];
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:232:29: error: 'ds' was not declared in this scope; did you mean 'dh'?
232 | top_prod += ds[v] * dh[v] / feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS);
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:232:39: error: invalid types 'double[int]' for array subscript
232 | top_prod += ds[v] * dh[v] / feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS);
| ^
../../../src/GridObj_ops_lbm.cpp:233:31: error: invalid types 'double[int]' for array subscript
233 | bot_prod += dh[v] * dh[v] / feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS);
| ^
../../../src/GridObj_ops_lbm.cpp:233:39: error: invalid types 'double[int]' for array subscript
233 | bot_prod += dh[v] * dh[v] / feq(i,j,k,v,M_lim,K_lim,L_NUM_VELS);
| ^
../../../src/GridObj_ops_lbm.cpp:247:44: error: 'ds' was not declared in this scope; did you mean 'dh'?
247 | (omega / 2) * (2 * ds[v] + gamma * dh[v])
| ^~
| dh
../../../src/GridObj_ops_lbm.cpp:247:62: error: invalid types 'double[int]' for array subscript
247 | (omega / 2) * (2 * ds[v] + gamma * dh[v])
| ^
../../../src/GridObj_ops_lbm.cpp: In member function 'void GridObj::LBM_macro(int, int, int)':
../../../src/GridObj_ops_lbm.cpp:283:39: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
283 | u(i,j,k,0,M_lim,K_lim,L_DIMS) = 0.0;
| ^~~~~~
| L_dims
../../../src/GridObj_ops_lbm.cpp:293:39: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
293 | u(i,j,k,0,M_lim,K_lim,L_DIMS) = 0.0;
| ^~~~~~
| L_dims
../../../src/GridObj_ops_lbm.cpp:308:37: error: 'L_NUM_VELS' was not declared in this scope
308 | for (int v = 0; v < L_NUM_VELS; v++) {
| ^~~~~~~~~~
../../../src/GridObj_ops_lbm.cpp:311:45: error: 'c' was not declared in this scope; did you mean 'cs'?
311 | fux_temp += (double)c[0][v] * f(i,j,k,v,M_lim,K_lim,L_NUM_VELS);
| ^
| cs
../../../src/GridObj_ops_lbm.cpp:325:65: error: 'L_DIMS' was not declared in this scope; did you mean 'L_dims'?
325 | fux_temp += 0.5 * force_xyz(i,j,k,0,M_lim,K_lim,L_DIMS);
| ^~~~~~
| L_dims
How to make it work?
I actually wonder how this is even supposed to work when defines between headers and tests definition files are incoherent -_-
I'm afraid that the tests have rotted; they are not run automatically, and have not kept up with changes in the rest of the codebase. I have created #27 and #28 to address these issues, but I cannot give a timeframe for when someone will be available to work on this. Of course, if you have the time, we would welcome help!