[petsc-users] Question on PCGALERKIN from command line

Edoardo alinovi edoardo.alinovi at gmail.com
Thu Sep 19 07:53:06 CDT 2024


Hi Barry,

I have a quick question on PC Galerking as I am trying to do the same thing
reported in this post:
https://urldefense.us/v3/__https://lists.mcs.anl.gov/pipermail/petsc-users/2017-June/032934.html__;!!G_uCfscf7eWS!bQ0VYCU_TuGCB-803OHYrdOURUwlOpEAp1j5pu1v1Kh6eUgPPdRF_wkiLfrW342u8LNZ4mpCiqz4OxsAOywju5ZUi9bIZUs$ 

This my command line:
mpirun -np 4 flubio_coupled* -UPeqn_pc_type composite
-UPeqn_pc_composite_pcs galerkin,bjacobi -UPeqn_sub_0_galerkin_ksp_type
preonly -UPeqn_sub_0_galerkin_pc_type none*

And this is the error:
[0]PETSC ERROR: --------------------- Error Message
--------------------------------------------------------------
[0]PETSC ERROR: Object is in wrong state
[0]PETSC ERROR: Must set operator of PCGALERKIN KSP with
PCGalerkinGetKSP()/KSPSetOperators()

Do I need to set something for PCGALERKING in my code to make it work from
command line?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240919/621c0664/attachment.html>


More information about the petsc-users mailing list