The code has if defined(DEAL_II_WITH_PETSC) && !defined(DEAL_II_PETSC_WITH_COMPLEX) && \ !(defined(DEAL_II_WITH_TRILINOS) && defined(FORCE_USE_OF_TRILINOS)) using namespace dealii::LinearAlgebraPETSc; # define USE_PETSC_LA #elif defined(DEAL_II_WITH_TRILINOS) using namespace dealii::LinearAlgebraTrilinos; #else # error DEAL_II_WITH_PETSC or DEAL_II_WITH_TRILINOS required #endif
so it will use Trilinos if deal.II is configured without PETSc support or if PETSc has been configured with complex support. On Tue, Jun 2, 2026 at 9:57 AM Victor Eijkhout <[email protected]> wrote: > > Or should that be: step 55 work with Petsc & P4est and NOT Trilinos? > > On Monday, June 1, 2026 at 9:10:57 PM UTC-5 Victor Eijkhout wrote: >> >> I read this as "having petsc & p4est is a sufficient condition. So I add a >> few lines to step55.cc: >> >> #include "deal.II/base/config.h" >> >> #ifndef DEAL_II_WITH_PETSC >> #error Does not have petsc >> #endif >> #ifndef DEAL_II_WITH_P4EST >> #error Does not have p4est >> #endif >> >> #include <deal.II/base/quadrature_lib.h> >> >> and I still get the same error on that last line, which has now become line >> 34: >> >> out/htmr_sandbox/step55/step55.cpp >> In file included from >> /work2/00434/eijkhout/htmr_sandbox/step55/step55.cpp:34: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/dealii-9.7.1/include/deal.II/lac/generic_linear_algebra.h:37: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/dealii-9.7.1/include/deal.II/lac/trilinos_solver.h:40: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/BelosBlockCGSolMgr.hpp:20: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/BelosLinearProblem.hpp:17: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/BelosMultiVecTraits.hpp:25: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/BelosStubTsqrAdapter.hpp:15: >> In file included from >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/Teuchos_ScalarTraits.hpp:81: >> /scratch/00434/eijkhout/army/Binaries/trilinos-16.2.1/include/Teuchos_ScalarTraitsDecl.hpp:120:101: >> error: conversion function from 'int' to 'std::string' (aka >> 'basic_string<char>') invokes a deleted function >> 120 | static inline std::string name() { >> (void)UndefinedScalarTraits<T>::notDefined(); return 0; } >> | >> ^ >> /opt/apps/gcc/15.1.0/lib/gcc/x86_64-pc-linux-gnu/15.1.0/../../../../include/c++/15.1.0/bits/basic_string.h:835:7: >> note: 'basic_string' has been explicitly marked deleted here >> 835 | basic_string(nullptr_t) = delete; >> >> > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/dealii/f881c151-874f-4467-8145-f97cee0e9d33n%40googlegroups.com. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/dealii/CAOYDWbJKFo4HX7vu%2BuZCpyxOcVWKP1PScHdTq0ahBeRJupWDNQ%40mail.gmail.com.
