1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

In the middle of adding a general binary writer

This commit is contained in:
Guido Cossu
2016-10-04 11:24:08 +01:00
parent cfbc1a26b8
commit d9b5fbd374
4 changed files with 163 additions and 55 deletions

View File

@ -41,8 +41,6 @@ directory
#ifndef INTEGRATOR_INCLUDED
#define INTEGRATOR_INCLUDED
// class Observer;
#include <memory>
namespace Grid {
@ -77,24 +75,20 @@ struct IntegratorParameters {
template <class FieldImplementation, class SmearingPolicy, class RepresentationPolicy>
class Integrator {
protected:
typedef IntegratorParameters ParameterType;
typedef typename FieldImplementation::Field MomentaField; //for readability
typedef typename FieldImplementation::Field Field;
int levels; // number of integration levels
double t_U; // Track time passing on each level and for U and for P
std::vector<double> t_P;
MomentaField P;
SmearingPolicy& Smearer;
RepresentationPolicy Representations;
IntegratorParameters Params;
const ActionSet<Field, RepresentationPolicy> as;
int levels; //
double t_U; // Track time passing on each level and for U and for P
std::vector<double> t_P; //
MomentaField P;
SmearingPolicy& Smearer;
RepresentationPolicy Representations;
void update_P(Field& U, int level, double ep) {
t_P[level] += ep;
update_P(P, U, level, ep);