Dear Kenza,

okay, so as I already mentioned, your Constructor in your spatialParams file is wrong.

Instead of
*HeterogeneousSpatialParams(std::shared_ptr<const FVElementGeometry> fvGeometry)
*you have to use*
HeterogeneousSpatialParams(const GridView &gridView)

*I also can't see the point why you want to pass the *FVElementGeometry *to the constructor
because it doesn't provide the functions you are using there.

Furthermore, is there any reason why you are using Dumux 2.8?
The newest version offers you more flexibility.

Best regards,
Martin*
**


*
Am 28.02.20 um 15:09 schrieb kenza bouznari:
Dear Martin,

Thank you for your reply. Please find attached the main file and I am using DuMux 2.8.

Best regards,

Kenza

Le ven. 28 févr. 2020 à 06:00, <[email protected] <mailto:[email protected]>> a écrit :

    Send Dumux mailing list submissions to
    [email protected]
    <mailto:[email protected]>

    To subscribe or unsubscribe via the World Wide Web, visit
    https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
    or, via email, send a message with subject or body 'help' to
    [email protected]
    <mailto:[email protected]>

    You can reach the person managing the list at
    [email protected]
    <mailto:[email protected]>

    When replying, please edit your Subject line so it is more specific
    than "Re: Contents of Dumux digest..."


    Today's Topics:

       1. Re: Error - Random field distribution (Martin Schneider)


    ----------------------------------------------------------------------

    Message: 1
    Date: Fri, 28 Feb 2020 09:27:04 +0100
    From: Martin Schneider <[email protected]
    <mailto:[email protected]>>
    To: DuMuX User Forum <[email protected]
    <mailto:[email protected]>>, kenza bouznari
            <[email protected] <mailto:[email protected]>>
    Subject: Re: [DuMuX] Error - Random field distribution
    Message-ID:
            <[email protected]
    <mailto:[email protected]>>
    Content-Type: text/plain; charset="utf-8"; Format="flowed"

    Dear Kenza,

    it seems that you are passing the wrong arguments to the
    Constructor of
    your SpatialParams File*.
    *
    Could you also send us your main File and let us know which Dumux
    version you are using,
    because it seems that you are using an old one.

    In older Dumux versions you had to pass the *gridView* to the
    spatialParams,
    but you are passing the *std::shared_ptr<const FVElementGeometry>
    fvGeometry.*
    *
    *Best regards,
    Martin*
    ***


    Am 28.02.20 um 00:09 schrieb kenza bouznari:
    > Hello,
    >
    > I'm trying to implement a random distribution of K in my domain. I
    > followed the example of 1p provided in DuMux-test. But I am
    having the
    > following error :
    >
    
//home/ggl/dumux/dumux/test/porousmediumflow/co2/implicit/test_boxco2.cc:79:58:

    > ? required from here
    > /usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching
    > function for call to
    >
    
?Dumux::HeterogeneousSpatialParams<Dumux::Properties::TTag::HeterogeneousBoxProblem>::HeterogeneousSpatialParams(const

    > Dune::GridView<Dune::ALU3dLeafGridViewTraits<const
    Dune::ALUGrid<2, 2,
    > (Dune::ALUGridElementType)1, (Dune::ALUGridRefinementType)1>,
    > (Dune::PartitionIteratorType)4> >&)?
    > ? { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }/
    >
    > Do you have any suggestions on how can I fixe it.
    > PS : Please find attached the problem and spatialparameters files.
    > Regards,
    >
    > Kenza
    >
    > _______________________________________________
    > Dumux mailing list
    > [email protected]
    <mailto:[email protected]>
    > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL:
    
<http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20200228/d6ef0503/attachment-0001.html>

    ------------------------------

    Subject: Digest Footer

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


    ------------------------------

    End of Dumux Digest, Vol 108, Issue 10
    **************************************


_______________________________________________
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