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]> a écrit : > Send Dumux mailing list submissions to > [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] > > You can reach the person managing the list at > [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]> > To: DuMuX User Forum <[email protected]>, kenza bouznari > <[email protected]> > Subject: Re: [DuMuX] Error - Random field distribution > Message-ID: > <[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] > > 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] > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux > > > ------------------------------ > > End of Dumux Digest, Vol 108, Issue 10 > ************************************** >
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vi: set et ts=4 sw=4 sts=4: /***************************************************************************** * See the file COPYING for full copying permissions. * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see <http://www.gnu.org/licenses/>. * *****************************************************************************/ /*! * \file * * \brief Test for the CO2 box model. */ #include <config.h> #include "heterogeneousproblem.hh" #include <dumux/common/start.hh> /*! * \brief Provides an interface for customizing error messages associated with * reading in parameters. This test only works if the flags for experimental * grid extensions and ALUGrid are set. See the commented part in optim.opts and * debug.opts for reference. * * \param progName The name of the program, that was tried to be started. * \param errorMsg The error message that was issued by the start function. * Comprises the thing that went wrong and a general help message. */ void usage(const char *progName, const std::string &errorMsg) { if (errorMsg.size() > 0) { std::string errorMessageOut = "\nUsage: "; errorMessageOut += progName; errorMessageOut += " [options]\n"; errorMessageOut += errorMsg; errorMessageOut += "\n\nThe List of Mandatory arguments for this program is:\n" "\t-TimeManager.DtInitial The initial timestep size. [s] \n" "\t-TimeManager.TEnd The end of the simulation. [s] \n" "\t-Grid.GridFile The file name of the file containing the grid \n" "\t definition in DGF format\n" "\t-FluidSystem.nTemperature Number of tabularization entries [-] \n" "\t-FluidSystem.nPressure Number of tabularization entries [-] \n" "\t-FluidSystem.pressureLow Low end for tabularization of fluid properties [Pa] \n" "\t-FluidSystem.pressureHigh High end for tabularization of fluid properties [Pa] \n" "\t-FluidSystem.temperatureLow Low end for tabularization of fluid properties [Pa] \n" "\t-FluidSystem.temperatureHigh High end for tabularization of fluid properties [Pa] \n" "\t-Problem.name The name of the output files [-] \n" "\t-Problem.depthBOR Depth below ground surface [m] \n" "\t-Problem.injectionRate Injection rate in kg/(s*m^2) or mole/(m^2*s) \n" "\t-LinearSolver.ResidualReduction [-] \n"; std::cout << errorMessageOut << "\n"; } } int main(int argc, char** argv) { #if !DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS #warning Test needs experimental grid extensions. std::cerr << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl; return 77; #elif !HAVE_DUNE_ALUGRID #warning You need to have dune-ALUGrid installed to run this test. std::cerr << "You need to have dune-ALUGrid installed to run this test." << std::endl; return 77; #else typedef TTAG(HeterogeneousBoxProblem) ProblemTypeTag; return Dumux::start<ProblemTypeTag>(argc, argv, usage); #endif }
_______________________________________________ Dumux mailing list [email protected] https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
