24 using json = nlohmann::ordered_json;
pybind11-style configuration registration with macro-based field declaration and namespace-scoped tag...
#define DNDS_FIELD(name_, desc_,...)
Register a field inside a DNDS_DECLARE_CONFIG body.
Core type aliases, constants, and metaprogramming utilities for the DNDS framework.
#define DNDS_DEVICE_CALLABLE
#define DNDS_DEVICE_TRIVIAL_COPY_DEFINE_NO_EMPTY_CTOR(T, T_Self)
JSON-to-Eigen conversion utilities and nlohmann_json helper macros.
RangeTag range(double min)
Create a minimum-only range constraint.
void from_json(const nlohmann::ordered_json &j, host_device_vector< real > &v)
void to_json(nlohmann::ordered_json &j, const host_device_vector< real > &v)
A means to translate nlohmann json into c++ primitive data types and back; and stores then during com...
DNDS_DECLARE_CONFIG(FiniteVolumeSettings)
DNDS_HOST void WriteIntoJson(json &jsonSetting) const
Backward-compatible write (used by Python bindings and VRSettings).
int intOrder
polynomial degree of reconstruction
bool ignoreMeshGeometryDeficiency
integration degree globally set
nlohmann::ordered_json json
DNDS_HOST void ParseFromJson(const json &jsonSetting)
Backward-compatible read (used by Python bindings and VRSettings).