Hi Kenza,

you are not setting the SpatialParams property, so the program doesn’t know 
which spatial params class you want to use.
Uncomment the line:

SET_TYPE_PROP(HeterogeneousSpatialParams, SpatialParams, 
HeterogeneousSpatialParams<TypeTag>);

in our spatial params header.
To avoid confusion with the property system I wouldn’t define any properties 
and new type tags in the spatial params header.
Include the spatialparams header in the problem header and use 
SET_TYPE_PROP(HeterogeneousProblem, SpatialParams, 
HeterogeneousSpatialParams<TypeTag>);
instead.

Also you are using some old version of Dumux. I strongly recommend you to use 
Dumux 3.1. Dumux 3.2 will be release in about two weeks from now.

Timo




> On 30. Mar 2020, at 18:44, kenza bouznari <[email protected]> wrote:
> 
> Dear Dumux developers,
> 
> I've changed the code of the test which I use in order to generate a random 
> distribution of permeabilities. The code compiles properly without any error. 
> but once I run the simulation it gives the following error:
> 
> Dune reported error: Dune::InvalidStateException 
> [materialLawParamsAtPos:/home/bkenza/dumux_AN/dumux/dumux/material/spatialparams/implicit.hh:94]:
>  The spatial parameters do not provide a materialLawParamsAtPos() method.
> 
> It seems I am wrong but I cannot figure out where!
> P.S. Please find attached : the input file and the spatialparms file I'm 
> using 
> 
> Kind regards,
> 
> Kenza
> <heterogeneousspatialparameters.hh><test_boxco2.input><heterogeneousproblem.hh>_______________________________________________
> Dumux mailing list
> [email protected]
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to