1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3 // 4 // SPDX-License-Identifier: BSD-2-Clause 5 // 6 // This file is part of CEED: http://github.com/ceed 7 8 /// @file 9 /// Public header for definitions related to using FP32 floating point (single 10 /// precision) for CeedScalar. Include this header in ceed/ceed.h to use 11 /// float instead of double. 12 #ifndef _ceed_f32_h 13 #define _ceed_f32_h 14 15 /// Set base scalar type to FP32. (See CeedScalarType enum in ceed/ceed.h 16 /// for all options.) 17 #define CEED_SCALAR_TYPE CEED_SCALAR_FP32 18 typedef float CeedScalar; 19 20 /// Machine epsilon 21 #define CEED_EPSILON 6e-08 22 23 #endif 24