move match_field to protected method and format the docstring
This commit is contained in:
@ -179,17 +179,19 @@ bigint ReaderNative::read_header(double box[3][3], int &boxinfo, int &triclinic,
|
||||
return natoms;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
match each field with a column of per-atom data
|
||||
if fieldlabel set, match with explicit column
|
||||
else infer one or more column matches from fieldtype
|
||||
xyz flag set by scaleflag + wrapflag (if fieldlabel set) or column label
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void ReaderNative::match_field(int nfield,
|
||||
int &xflag, int &yflag, int &zflag,
|
||||
int *fieldtype, char **fieldlabel,
|
||||
int scaleflag, int wrapflag, int &fieldflag,
|
||||
std::map<std::string, int> labels)
|
||||
{
|
||||
// match each field with a column of per-atom data
|
||||
// if fieldlabel set, match with explicit column
|
||||
// else infer one or more column matches from fieldtype
|
||||
// xyz flag set by scaleflag + wrapflag (if fieldlabel set) or column label
|
||||
|
||||
memory->create(fieldindex,nfield,"read_dump:fieldindex");
|
||||
|
||||
int s_index,u_index,su_index;
|
||||
|
||||
Reference in New Issue
Block a user