Include domain box on DEM input file

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti 2022-07-08 23:15:30 +02:00
parent 3b85da83a7
commit 99237241fb
2 changed files with 7 additions and 1 deletions

View File

@ -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.833 0.45 0 -1 0 0

View File

@ -450,6 +450,12 @@ int readAtom_in(Atom* atom, Parameter* param) {
fgets(line, MAXLINE, fp);
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->Nlocal = natoms;
atom->ntypes = 1;