git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9050 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2012-11-10 01:18:09 +00:00
parent 75e9a2e218
commit 8cc9aa5698
3 changed files with 172 additions and 25 deletions

View File

@ -14,6 +14,7 @@
#ifndef LMP_VARIABLE_H
#define LMP_VARIABLE_H
#include "stdlib.h"
#include "pointers.h"
namespace LAMMPS_NS {
@ -45,7 +46,9 @@ class Variable : protected Pointers {
int *num; // # of values for each variable
int *which; // next available value for each variable
int *pad; // 1 = pad loop/uloop variables with 0s, 0 = no pad
class VarReader **reader; // variable that reads lines from file
char ***data; // str value of each variable's values
int *eval_in_progress; // flag if evaluation of variable is in progress
class RanMars *randomequal; // random number generator for equal-style vars
@ -90,6 +93,17 @@ class Variable : protected Pointers {
void print_tree(Tree *, int);
};
class VarReader : protected Pointers {
public:
VarReader(class LAMMPS *, char *);
~VarReader();
int read(char *);
private:
int me;
FILE *fp;
};
}
#endif