aesthetic optimization for xscale, yscale and zscale
This commit is contained in:
committed by
GitHub
parent
e1c028c785
commit
ac9afb26dd
@ -82,13 +82,9 @@ FixIndent::FixIndent(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
|
|
||||||
// setup scaling
|
// setup scaling
|
||||||
|
|
||||||
double xscale,yscale,zscale;
|
const double xscale { scaleflag ? domain->lattice->xlattice : 1.0};
|
||||||
if (scaleflag) {
|
const double yscale { scaleflag ? domain->lattice->ylattice : 1.0};
|
||||||
xscale = domain->lattice->xlattice;
|
const double zscale { scaleflag ? domain->lattice->zlattice : 1.0};
|
||||||
yscale = domain->lattice->ylattice;
|
|
||||||
zscale = domain->lattice->zlattice;
|
|
||||||
}
|
|
||||||
else xscale = yscale = zscale = 1.0;
|
|
||||||
|
|
||||||
// apply scaling factors to geometry
|
// apply scaling factors to geometry
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user