forked from lijiext/lammps
Fix whitespace
This commit is contained in:
parent
447784212a
commit
636a1bffe3
|
@ -1010,7 +1010,7 @@ void PairEAMFSKokkos<DeviceType>::read_file(char *filename)
|
||||||
strcpy(file->elements[i], word.c_str());
|
strcpy(file->elements[i], word.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
line = reader.next_line(5);
|
line = reader.next_line(5);
|
||||||
values = ValueTokenizer(line);
|
values = ValueTokenizer(line);
|
||||||
|
@ -1022,7 +1022,7 @@ void PairEAMFSKokkos<DeviceType>::read_file(char *filename)
|
||||||
|
|
||||||
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
||||||
error->one(FLERR,"Invalid EAM potential file");
|
error->one(FLERR,"Invalid EAM potential file");
|
||||||
|
|
||||||
memory->create(file->mass, file->nelements, "pair:mass");
|
memory->create(file->mass, file->nelements, "pair:mass");
|
||||||
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
||||||
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
||||||
|
|
|
@ -1049,7 +1049,7 @@ double PairEIM::memory_usage()
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
EIMPotentialFileReader::EIMPotentialFileReader(LAMMPS * lmp, const std::string & filename) :
|
EIMPotentialFileReader::EIMPotentialFileReader(LAMMPS * lmp, const std::string & filename) :
|
||||||
Pointers(lmp), filename(filename)
|
Pointers(lmp), filename(filename)
|
||||||
{
|
{
|
||||||
if (comm->me != 0) {
|
if (comm->me != 0) {
|
||||||
|
@ -1065,7 +1065,7 @@ EIMPotentialFileReader::EIMPotentialFileReader(LAMMPS * lmp, const std::string &
|
||||||
}
|
}
|
||||||
|
|
||||||
parse(fp);
|
parse(fp);
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1115,7 +1115,7 @@ char * EIMPotentialFileReader::next_line(FILE * fp) {
|
||||||
|
|
||||||
// strip comment
|
// strip comment
|
||||||
if ((ptr = strchr(line, '#'))) *ptr = '\0';
|
if ((ptr = strchr(line, '#'))) *ptr = '\0';
|
||||||
|
|
||||||
// strip ampersand
|
// strip ampersand
|
||||||
if ((ptr = strrchr(line, '&'))) {
|
if ((ptr = strrchr(line, '&'))) {
|
||||||
concat = true;
|
concat = true;
|
||||||
|
|
|
@ -573,12 +573,12 @@ void PairPolymorphic::read_file(char *file)
|
||||||
|
|
||||||
char * line = reader->next_line(2);
|
char * line = reader->next_line(2);
|
||||||
ValueTokenizer values(line);
|
ValueTokenizer values(line);
|
||||||
|
|
||||||
int ntypes = values.next_int();
|
int ntypes = values.next_int();
|
||||||
|
|
||||||
if (ntypes != nelements)
|
if (ntypes != nelements)
|
||||||
error->one(FLERR,"Incorrect number of elements in potential file");
|
error->one(FLERR,"Incorrect number of elements in potential file");
|
||||||
|
|
||||||
eta = values.next_int();
|
eta = values.next_int();
|
||||||
|
|
||||||
// map the elements in the potential file to LAMMPS atom types
|
// map the elements in the potential file to LAMMPS atom types
|
||||||
|
|
|
@ -37,7 +37,7 @@ class PairTersoff : public Pair {
|
||||||
static const int NPARAMS_PER_LINE = 17;
|
static const int NPARAMS_PER_LINE = 17;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
struct Param {
|
struct Param {
|
||||||
double lam1,lam2,lam3;
|
double lam1,lam2,lam3;
|
||||||
double c,d,h;
|
double c,d,h;
|
||||||
|
|
|
@ -144,7 +144,7 @@ void PairEAMFSIntel::read_file(char *filename)
|
||||||
strcpy(file->elements[i], word.c_str());
|
strcpy(file->elements[i], word.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
line = reader.next_line(5);
|
line = reader.next_line(5);
|
||||||
values = ValueTokenizer(line);
|
values = ValueTokenizer(line);
|
||||||
|
@ -156,7 +156,7 @@ void PairEAMFSIntel::read_file(char *filename)
|
||||||
|
|
||||||
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
||||||
error->one(FLERR,"Invalid EAM potential file");
|
error->one(FLERR,"Invalid EAM potential file");
|
||||||
|
|
||||||
memory->create(file->mass, file->nelements, "pair:mass");
|
memory->create(file->mass, file->nelements, "pair:mass");
|
||||||
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
||||||
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
||||||
|
|
|
@ -144,7 +144,7 @@ void PairEAMFSOMP::read_file(char *filename)
|
||||||
strcpy(file->elements[i], word.c_str());
|
strcpy(file->elements[i], word.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
line = reader.next_line(5);
|
line = reader.next_line(5);
|
||||||
values = ValueTokenizer(line);
|
values = ValueTokenizer(line);
|
||||||
|
@ -156,7 +156,7 @@ void PairEAMFSOMP::read_file(char *filename)
|
||||||
|
|
||||||
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
if ((file->nrho <= 0) || (file->nr <= 0) || (file->dr <= 0.0))
|
||||||
error->one(FLERR,"Invalid EAM potential file");
|
error->one(FLERR,"Invalid EAM potential file");
|
||||||
|
|
||||||
memory->create(file->mass, file->nelements, "pair:mass");
|
memory->create(file->mass, file->nelements, "pair:mass");
|
||||||
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
memory->create(file->frho, file->nelements, file->nrho + 1, "pair:frho");
|
||||||
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
memory->create(file->rhor, file->nelements, file->nelements, file->nr + 1, "pair:rhor");
|
||||||
|
|
|
@ -82,7 +82,7 @@ public:
|
||||||
|
|
||||||
bool has_next() const;
|
bool has_next() const;
|
||||||
void skip(int ntokens);
|
void skip(int ntokens);
|
||||||
|
|
||||||
const size_t count() const;
|
const size_t count() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ namespace LAMMPS_NS {
|
||||||
*/
|
*/
|
||||||
tagint tnumeric(const char *file, int line, const char *str,
|
tagint tnumeric(const char *file, int line, const char *str,
|
||||||
bool do_abort, LAMMPS *lmp);
|
bool do_abort, LAMMPS *lmp);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Trim anything from '#' onward
|
* \brief Trim anything from '#' onward
|
||||||
|
|
Loading…
Reference in New Issue