Include domain box on DEM input file
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
3b85da83a7
commit
99237241fb
@ -1,3 +1,3 @@
|
|||||||
2
|
2 0 1 0 1 0 1
|
||||||
1 0.1 0.166 0.55 0 1 0 0
|
1 0.1 0.166 0.55 0 1 0 0
|
||||||
1 0.1 0.833 0.45 0 -1 0 0
|
1 0.1 0.833 0.45 0 -1 0 0
|
||||||
|
@ -450,6 +450,12 @@ int readAtom_in(Atom* atom, Parameter* param) {
|
|||||||
|
|
||||||
fgets(line, MAXLINE, fp);
|
fgets(line, MAXLINE, fp);
|
||||||
natoms = atoi(strtok(line, " "));
|
natoms = atoi(strtok(line, " "));
|
||||||
|
param->xlo = atof(strtok(NULL, " "));
|
||||||
|
param->xhi = atof(strtok(NULL, " "));
|
||||||
|
param->ylo = atof(strtok(NULL, " "));
|
||||||
|
param->yhi = atof(strtok(NULL, " "));
|
||||||
|
param->zlo = atof(strtok(NULL, " "));
|
||||||
|
param->zhi = atof(strtok(NULL, " "));
|
||||||
atom->Natoms = natoms;
|
atom->Natoms = natoms;
|
||||||
atom->Nlocal = natoms;
|
atom->Nlocal = natoms;
|
||||||
atom->ntypes = 1;
|
atom->ntypes = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user