Hi Jason,

the problem with your approach is the following: the read_input - function 
reads the whole parameter file and calls for each of the parameters given in 
the form "set parameter_name = value" the scan_line - function and checks, if 
this parameter was being declared, if this is not the case, an exception is 
thrown.

The simplest way is to declare all entries first, read the parameters from the 
file and after this, you can do what you want. If the parameters are in the 
file, you know them and you can declare them, this should not be a problem, or 
is there something I do not get?

Maybe this helps,

Best,
Martin






----- Original Message ----- 
  From: Jason Sheldon 
  To: [email protected] 
  Sent: Monday, August 29, 2011 7:49 PM
  Subject: [deal.II] Issue with parameter handlers


  Hello everyone,

  I've come across the need to read specific values from a parameter file 
before I know which values I will be reading later.  I can get the code to 
compile and run, but it shoots out a lot of warnings saying parameters have not 
been declared. 

  I've mocked up a small example of this. (attached)  I was wondering if there 
was a way to prevent these warnings from occurring, or a different way I should 
be calling the parameter file to avoid the issue.
  -- 
  -Jason Sheldon



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


  _______________________________________________
  dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to