[petsc-users] Reading -options_file

Barry Smith bsmith at petsc.dev
Thu Sep 18 14:59:50 CDT 2025


  The PETSc options all begin with a single dash, so it is -options_file input/main.in

> On Sep 18, 2025, at 3:44 PM, Riousset, Jeremy via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi,
> 
> I’m updating a code from PETSc 3.4 to run with the latest PETSc. Here is my status:
> I read the parameters via: mpiexec -n 1 bin/./M4 --options_file input/main.in
> I’m not opening main.in correctly
> None of the options are retrieved by e.g., PetscOptionsGetReal
> Do you have a suggestion to test what file the code is actually trying to access?
> 
> Thanks
> 
> Jeremy A. Riousset, Ph.D. (he, him, his) 
> Associate Professor of Engineering Physics 
> Physical Science
> 
> 1 Aerospace Boulevard
> Daytona Beach, FL 32114
> +1 (386) 226-6407
> jeremy.riousset at erau.edu <mailto:jeremy.riousset at erau.edu>
> https://urldefense.us/v3/__https://orcid.org/0000-0003-1516-5337__;!!G_uCfscf7eWS!daPHuppUEFVq0MXFucwjQfHajb2F7k9SacXGc97wyrP0Y6xe_NMmBuGL3VWZlGslDIwvXhNegAOGwWLhjspnvIo$  <https://urldefense.us/v3/__https://orcid.org/0000-0003-1516-5337__;!!G_uCfscf7eWS!YiGxTKiNGs8EnS4pzFoO1YK18z4fx-sCtisUBloRO8dd6sUuh3kfUkimanAH5cJ-jgPhYw-Qk_8q8BBxAtPO0s_6$>
> Embry-Riddle Aeronautical University 
> Florida | Arizona | Worldwide
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250918/d0907f67/attachment-0001.html>


More information about the petsc-users mailing list