trilinos / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
1.22k stars 569 forks source link

epetra compilation error #13613

Open ajithperera opened 4 days ago

ajithperera commented 4 days ago

trilinos/16.6.0 compilation fails at epetra linear2d_diffusion_pce_nox_sg_solvers.cpp, line 472

else

det_ML.set("coarse: type","Jacobi");

endif

Teuchos::RCP<NOX::Epetra::LinearSystem> det_linsys =
  Teuchos::rcp(new NOX::Epetra::LinearSystemStratimikos(
                 det_printParams, det_lsParams, det_iJac,
                 det_A, *det_u));

The Error is unexpected type-specifier new NOX (same error appears in lines 647,652,665,690). The compiler is gcc/12.2.0 and openmpi/4.1.6

Any help to fix this greatly appreciated

Regards, Ajith

ccober6 commented 3 days ago

@rppawlo

rppawlo commented 3 days ago

This is a stokhos example that calls nox. Maybe @etphipp can help?

etphipp commented 3 days ago

I am going to guess a configuration corner-case where Stokhos+NOX+Epetra was enabled but maybe Stratimikos wasn't?

@ajithperera are you wanting to use Stokhos? If not, the simplest thing to do would be to disable it by configuring with `-D Trilinos_ENABLE_Stokhos=OFF'. If you are, can you send your configure script to see what you have enabled?

Btw, all of this code will disappear at some point in the near future as Epetra is slated for removal from Trilinos.

ajithperera commented 2 days ago

Thanks, I will turn off Stokhos. I did not invoke Stratimikos explicitly. Yes, I read about Epetra removal, but deal.ii still needs (even the latest release) Epetra. Thanks again!

Ajith