Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::solvers::ReferenceAcceleration Struct Reference

An acceleration in double precision, whatever the build's scalar type is. More...

#include <orrery/solvers/reference_kernel.hpp>

Public Attributes

double x {}
double y {}
double z {}

Detailed Description

An acceleration in double precision, whatever the build's scalar type is.

A distinct type rather than core::Vec3 because the whole point of the reference is that it is not held in the precision under test. Returning a Vec3 would round the answer back to float in the single-precision build and quietly destroy the accuracy this file exists to provide.


The documentation for this struct was generated from the following file: