[petsc-dev] C++ error with just PETSc includes
Satish Balay
balay at mcs.anl.gov
Mon Jul 13 10:23:59 CDT 2020
Checking src/mat/tests/ex231.cxx you need:
diff --git a/src/dm/impls/plex/landau/kokkos/tutorials/ex1.cxx b/src/dm/impls/plex/landau/kokkos/tutorials/ex1.cxx
index d04eaf96e7..967efc3625 100644
--- a/src/dm/impls/plex/landau/kokkos/tutorials/ex1.cxx
+++ b/src/dm/impls/plex/landau/kokkos/tutorials/ex1.cxx
@@ -1,5 +1,7 @@
static char help[] = "Simple Kokkos test\n\n";
+#define PETSC_SKIP_CXX_COMPLEX_FIX
#include <petscdmplex.h>
Also #requiresdefine is not meant for example makefile. You can use:
build: requires: in /*TEST section
Satish
On Mon, 13 Jul 2020, Mark Adams wrote:
> I have a wip C++ test that just calls PetscInitialize and Finalize, and I
> am getting some sort of error in the include file:
>
> https://gitlab.com/petsc/petsc/-/jobs/635768809
>
> All I do is:
>
> #include <petscdmplex.h>
>
> Any ideas?
> Thanks,
> Mark
>
More information about the petsc-dev
mailing list