#ifndef UTIL_H
#define UTIL_H

//-----------------------------------------------------------------------------
//
//  Peter Richter (prichter@princeton.edu)
//  Princeton Plasma Physics Laboratory
//  August 2000
//
//  util.h - Useful macros and typedefs.
//
//-----------------------------------------------------------------------------

#include <cstring>

#define FALSE 0
#define TRUE  1

#define LOG 0
#define LIN 1

#define IGNORE 0
#define WARN   1
#define HALT   2
#define IGNORE_CLEAR 3
#define WARN_CLEAR 4

typedef double fp_64;
typedef float  fp_32;

typedef struct range {
  fp_64 minimum;
  fp_64 maximum;
  fp_32 min32;
  fp_32 max32;
  int min_policy;
  int max_policy;
} range;

//-----------------------------------------------------------------------------

#endif

