|
[Sponsors] |
"template argument 1 is invalid" when including a specific header |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 21, 2020, 09:51 |
"template argument 1 is invalid" when including a specific header
|
#1 |
New Member
Mohammad Khojastehmehr
Join Date: Jul 2020
Posts: 20
Rep Power: 6 |
Hey everybody, hope you are doing great!
I am trying to make a solver: Code:
#include "fvCFD.H" #include <ThermoFun/ThermoFun.h> #include <Reaktoro/Reaktoro.hpp> int main(int argc, char *argv[]) { #include "setRootCaseLists.H" #include "createTime.H" #include "createMesh.H" #include "createFields.H" Reaktoro::ChemicalEditor editor; editor.addAqueousPhaseWithElements("H O Cl C Ca F Al Si K"); editor.addMineralPhaseWithElements("H O Cl C Ca F Al Si K"); Reaktoro::ChemicalSystem system(editor); Reaktoro::EquilibriumProblem problem(system); problem.add("H2O",1000,"g"); Reaktoro::ChemicalState state = equilibrate(problem); state.output("result.txt"); } Code:
In file included from /opt/openfoam8/src/OpenFOAM/lnInclude/setRootCaseLists.H:3:0, from reakTest.C:8: /opt/openfoam8/src/OpenFOAM/lnInclude/listOutput.H: In function ‘int main(int, char**)’: /opt/openfoam8/src/OpenFOAM/lnInclude/listOutput.H:33:31: error: template argument 1 is invalid << fvPatchField<vector>::dictionaryConstructorTablePtr_->sortedToc() I would be very appreciative if someone can help me with this! Best, Mohammad |
|
November 22, 2020, 09:58 |
The solution
|
#2 | |
New Member
Mohammad Khojastehmehr
Join Date: Jul 2020
Posts: 20
Rep Power: 6 |
Quote:
|
||
Tags |
error, header, solver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |