Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
DOLFINx C++ interface
types.h
1 // Copyright (C) 2008-2019 Anders Logg and Garth N. Wells
2 //
3 // This file is part of DOLFINx (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <petscsys.h>
10 
11 // Typedefs for ufc_scalar
12 #ifdef PETSC_USE_COMPLEX
13 #include <complex>
14 using ufc_scalar_t = std::complex<double>;
15 #else
16 using ufc_scalar_t = double;
17 #endif