Closed Saifullah-iitr closed 2 years ago
While Compilling the blastFoam I am getting following errors Compiling enabled on 4 cores Allwmake /home/saif/OpenFOAM/blastfoam Allwmake /home/saif/OpenFOAM/blastfoam/src wmake timeIntegrators wmake diameterModels wmake thermodynamicModels g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c lookupTables/lookupTable2D/lookupTable2D.C -o Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/none/noneActivation.C -o Make/linux64GccDPInt64Opt/activationModels/none/noneActivation.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/linear/linearActivation.C -o Make/linux64GccDPInt64Opt/activationModels/linear/linearActivation.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/programmedIgnition/programmedIgnitionActivation.C -o Make/linux64GccDPInt64Opt/activationModels/programmedIgnition/programmedIgnitionActivation.o In file included from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.H:316:0, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/HashTable.C:30, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/Istream.H:187, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/token.H:460, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILListIO.C:28, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILList.C:105, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILList.H:390, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/ILList.H:39, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/IDLList.H:35, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/entry.H:45, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/dictionary.H:53, from lookupTables/lookupTable2D/lookupTable2D.H:40, from lookupTables/lookupTable2D/lookupTable2D.C:26: /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C: In instantiation of ‘Foam::List::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’: lookupTables/lookupTable2D/lookupTable2D.C:217:30: required from here /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C:211:39: error: no matching function for call to ‘distance(int&, int&)’ List(first, last, std::distance(first, last)) ^ In file included from /usr/include/c++/5/bits/stl_algobase.h:66:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/string:40, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/string.H:51, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/word.H:42, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/keyType.H:41, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/entry.H:44, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/dictionary.H:53, from lookupTables/lookupTable2D/lookupTable2D.H:40, from lookupTables/lookupTable2D/lookupTable2D.C:26: /usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: note: candidate: template typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) distance(_InputIterator __first, _InputIterator __last) ^ /usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: note: template argument deduction/substitution failed: /usr/include/c++/5/bits/stl_iterator_base_funcs.h: In substitution of ‘template typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int]’: /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C:211:39: required from ‘Foam::List::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’ lookupTables/lookupTable2D/lookupTable2D.C:217:30: required from here /usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits’ /home/saif/OpenFOAM/OpenFOAM-7/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o' failed make: [Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o] Error 1 make: Waiting for unfinished jobs....
Hello, We just pushed a big update that may fix this issue, however please let me know if it does not. The update does require updating to OpenFOAM-9.
Thank you, Jeff
While Compilling the blastFoam I am getting following errors Compiling enabled on 4 cores Allwmake /home/saif/OpenFOAM/blastfoam Allwmake /home/saif/OpenFOAM/blastfoam/src wmake timeIntegrators wmake diameterModels wmake thermodynamicModels g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c lookupTables/lookupTable2D/lookupTable2D.C -o Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/none/noneActivation.C -o Make/linux64GccDPInt64Opt/activationModels/none/noneActivation.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/linear/linearActivation.C -o Make/linux64GccDPInt64Opt/activationModels/linear/linearActivation.o g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/finiteVolume/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/meshTools/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/timeIntegrators/lnInclude -I/home/saif/OpenFOAM/blastfoam/src/diameterModels/lnInclude -IlnInclude -I. -I/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude -I/home/saif/OpenFOAM/OpenFOAM-7/src/OSspecific/POSIX/lnInclude -fPIC -c activationModels/programmedIgnition/programmedIgnitionActivation.C -o Make/linux64GccDPInt64Opt/activationModels/programmedIgnition/programmedIgnitionActivation.o In file included from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.H:316:0, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/HashTable.C:30, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/Istream.H:187, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/token.H:460, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILListIO.C:28, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILList.C:105, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/UILList.H:390, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/ILList.H:39, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/IDLList.H:35, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/entry.H:45, from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/dictionary.H:53, from lookupTables/lookupTable2D/lookupTable2D.H:40, from lookupTables/lookupTable2D/lookupTable2D.C:26: /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C: In instantiation of ‘Foam::List::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’:
lookupTables/lookupTable2D/lookupTable2D.C:217:30: required from here
/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C:211:39: error: no matching function for call to ‘distance(int&, int&)’
List(first, last, std::distance(first, last))
^
In file included from /usr/include/c++/5/bits/stl_algobase.h:66:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/string:40,
from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/string.H:51,
from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/word.H:42,
from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/keyType.H:41,
from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/entry.H:44,
from /home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/dictionary.H:53,
from lookupTables/lookupTable2D/lookupTable2D.H:40,
from lookupTables/lookupTable2D/lookupTable2D.C:26:
/usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: note: candidate: template typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator)
distance(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: note: template argument deduction/substitution failed:
/usr/include/c++/5/bits/stl_iterator_base_funcs.h: In substitution of ‘template typename std::iterator_traits<_Iterator>::difference_type std::distance(_InputIterator, _InputIterator) [with _InputIterator = int]’:
/home/saif/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/List.C:211:39: required from ‘Foam::List::List(InputIterator, InputIterator) [with InputIterator = int; T = long int]’
lookupTables/lookupTable2D/lookupTable2D.C:217:30: required from here
/usr/include/c++/5/bits/stl_iterator_base_funcs.h:114:5: error: no type named ‘difference_type’ in ‘struct std::iterator_traits’
/home/saif/OpenFOAM/OpenFOAM-7/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o' failed
make: [Make/linux64GccDPInt64Opt/lookupTables/lookupTable2D/lookupTable2D.o] Error 1
make: Waiting for unfinished jobs....