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 
> <[email protected]> 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
> [email protected] <mailto:[email protected]>
> 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
> 
> 

Reply via email to