[petsc-users] How add arguments with PetscInitializeNoArguments()

Faraz Hussain faraz_hussain at yahoo.com
Mon Jun 27 16:44:10 CDT 2016


I am using  PetscInitializeNoArguments() inside my app. But wanted to add the argument -log_summary and  -ksp_monitor_true_residual . Is there a quick way to do with this? I tried doing something like this, but it did not work:

PetscInitializeNoArguments();

int argc = 1;
char *argv[1];
argv[0] = '-ksp_monitor_true_residual';



More information about the petsc-users mailing list