1#ifndef PRDC_CUDA_R_FIELD_COMPARISON_TPP
2#define PRDC_CUDA_R_FIELD_COMPARISON_TPP
11#include "RFieldComparison.h"
12#include <pscf/cuda/HostDArray.h>
36 fieldComparison_.compare(ha, hb);
39 return fieldComparison_.maxDiff();
48 int nPoints = a[0].capacity();
54 for (
int i = 0; i < nFields; i++) {
60 fieldComparison_.compare(ha, hb);
63 return fieldComparison_.maxDiff();
Template for dynamic array stored in host CPU memory.
Field of real double precision values on an FFT mesh.
RFieldComparison()
Constructor.
double compare(RField< D > const &a, RField< D > const &b)
Comparator for individual fields.
int capacity() const
Return allocated size.
Dynamically allocatable contiguous array template.
void allocate(int capacity)
Allocate the underlying C array.
PSCF package top-level namespace.