Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFLBody.cpp: error: 'numeric_limits' is not a member of 'std' #24

Open
barracuda156 opened this issue Jul 9, 2023 · 0 comments · May be fixed by #26
Open

BFLBody.cpp: error: 'numeric_limits' is not a member of 'std' #24

barracuda156 opened this issue Jul 9, 2023 · 0 comments · May be fixed by #26

Comments

@barracuda156
Copy link

Apparently the needed header has been forgotten?

make: Entering directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_science_luma/luma/work/LUMA-1.7.12/LUMA'
mkdir -p obj
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/BFLBody.o src/BFLBody.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/BFLMarker.o src/BFLMarker.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/FEMBody.o src/FEMBody.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/FEMElement.o src/FEMElement.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/FEMNode.o src/FEMNode.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/GridManager.o src/GridManager.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/GridObj.o src/GridObj.cpp
mpicxx-mpich-gcc12 -O3 -std=c++0x -w -fopenmp -I/include -c -o obj/GridObj_init_grids.o src/GridObj_init_grids.cpp
src/BFLBody.cpp: In member function 'void BFLBody::computeQ(int, int, int, GridObj*)':
src/BFLBody.cpp:391:111: error: 'numeric_limits' is not a member of 'std'
  391 |                                 if (Q[vel + L_NUM_VELS * storeID] == -1) Q[vel + L_NUM_VELS * storeID] = std::numeric_limits<double>::max();
      |                                                                                                               ^~~~~~~~~~~~~~
src/BFLBody.cpp:391:126: error: expected primary-expression before 'double'
  391 |                                 if (Q[vel + L_NUM_VELS * storeID] == -1) Q[vel + L_NUM_VELS * storeID] = std::numeric_limits<double>::max();
      |                                                                                                                              ^~~~~~
src/BFLBody.cpp: In member function 'void BFLBody::computeQ(int, int, GridObj*)':
src/BFLBody.cpp:526:78: error: 'numeric_limits' is not a member of 'std'
  526 |                                         Q[vel + L_NUM_VELS * storeID] = std::numeric_limits<double>::max();
      |                                                                              ^~~~~~~~~~~~~~
src/BFLBody.cpp:526:93: error: expected primary-expression before 'double'
  526 |                                         Q[vel + L_NUM_VELS * storeID] = std::numeric_limits<double>::max();
      |                                                                                             ^~~~~~
make: *** [obj/BFLBody.o] Error 1
barracuda156 added a commit to barracuda156/LUMA that referenced this issue Jul 9, 2023
@barracuda156 barracuda156 linked a pull request Jul 9, 2023 that will close this issue
jake-g00dwin added a commit to jake-g00dwin/LUMA that referenced this issue Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant