CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   1.5 => 1.6: Matrix template - ODETest does not compile (http://www.cfd-online.com/Forums/openfoam-programming-development/69172-1-5-1-6-matrix-template-odetest-does-not-compile.html)

markc October 14, 2009 05:08

1.5 => 1.6: Matrix template - ODETest does not compile
 
Hello All,

with the change from version OF1.5 to 1.6, I encountered a problem when using code bits which I derived from ODETest (applications-test).
In OF 1.5 I was able to wmake ODETest without any problems. Doing this in 1.6 I get the following error message:
>>>
ODETest.C:72: error: wrong number of template arguments (1, should be 2)

OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Matrix.H:55: error: provided for ‘template<classForm, class Type> class Foam::Matrix’
ODETest.C: In member function ‘void testODE::jacobian(Foam::scalar, const Foam::scalarField&, Foam::scalarField&, int&) const’:

<<<

This error message seems clear enough. In Matrix.H I see there is a declaration of Form (Matrix<Form, type>). However I do not know how to modify the code in order to make it work again for 1.6. Any help is greatly appreciated here.

Brgds,

Mark

kmou November 26, 2013 11:41

Hi markc,

I have exactly the same issue and would be grateful if you could share how you resolved this problem. Thank you very much.

wyldckat November 26, 2013 18:00

Quick answer - Mark's original issue was solved here: http://repo.or.cz/w/OpenFOAM-1.6.x.g...1b95655#patch6


All times are GMT -4. The time now is 19:36.