Hi,
Don't know if this is relevant but I cannot find an answer from the
previous posts.
I got bothered a bit about the problem: the existence of some parameters
depends on the other parameters defining the problem. what I am doing now
is that I have two methods called: declare_parameter(prm) and
declare_other_parameter(prm,prm2) and further I do:
void PROBLEM<dim>::declare_other_parameters(prm,prm2)
{
declare corresponding entries in prm2 after reading input parameters in
prm;
}
main ()
{
ParameterHandler prm, prm2;
PROBLEM<dimension>::declare_parameter (prm);
prm.read_input (argv[1]);
PROBLEM<dimension>::declare_other_parameter (prm,prm2);
prm2.read_input (argv[2]);
PROBLEM<dimension> prob (prm,prm2);
}
As you see, I actually do declare entries for parameters for problem
definition and read them in the first file. After that I have to declare
extra entries depending on what I have read in the first file and read in
another file.
What I prefer is a way that I can put everything in one file, any idea for
that please?
Best,
Weixiong
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.