git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9050 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user