[petsc-users] run option

Barry Smith bsmith at mcs.anl.gov
Mon Jun 28 15:17:12 CDT 2010


On Jun 28, 2010, at 3:13 PM, Xuan YU wrote:

> 
> On Jun 28, 2010, at 3:47 PM, Barry Smith wrote:
> 
>> 
>>  Do you have a TSSetFromOptions() or a SNESSetFromOptions() or a KSPSetFromOptions() or a PCSetFromOptions(). If not then the option never gets processed and used.
>> 
> I only have  ierr = TSSetFromOptions(ts);CHKERRQ(ierr).

   That is fine, that calls PCSetFromOptions() and should process your option. Perhaps you set a prefix for the TS that you need in setting the preconditioner type.

   Barry

> 
> 
> 
>>  Barry
>> 
>> On Jun 28, 2010, at 2:24 PM, Xuan YU wrote:
>> 
>>> Hi,
>>> 
>>> I run my code by ./xxx -pc_type icc
>>> 
>>> But it says:
>>> 
>>> WARNING! There are options you set that were not used!
>>> WARNING! could be spelling mistake, etc!
>>> Option left: name:-pc_type value: icc
>>> 
>>> Could you please tell me what happened?
>>> 
>>> Xuan YU
>>> xxy113 at psu.edu
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> 
> 
> 



More information about the petsc-users mailing list