git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12844 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -48,11 +48,13 @@ RegIntersect::RegIntersect(LAMMPS *lmp, int narg, char **arg) :
|
||||
list[nregion++] = iregion;
|
||||
}
|
||||
|
||||
// this region is variable shape if any of sub-regions are
|
||||
// this region is variable shape or dynamic if any of sub-regions are
|
||||
|
||||
Region **regions = domain->regions;
|
||||
for (int ilist = 0; ilist < nregion; ilist++)
|
||||
for (int ilist = 0; ilist < nregion; ilist++) {
|
||||
if (regions[list[ilist]]->varshape) varshape = 1;
|
||||
if (regions[list[ilist]]->dynamic) dynamic = 1;
|
||||
}
|
||||
|
||||
// extent of intersection of regions
|
||||
// has bounding box if interior and any sub-region has bounding box
|
||||
@ -127,19 +129,6 @@ void RegIntersect::init()
|
||||
regions[list[ilist]]->init();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
return 1 if region is dynamic, 0 if static
|
||||
dynamic if any sub-region is dynamic, else static
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
int RegIntersect::dynamic_check()
|
||||
{
|
||||
Region **regions = domain->regions;
|
||||
for (int ilist = 0; ilist < nregion; ilist++)
|
||||
if (regions[list[ilist]]->dynamic_check()) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
inside = 1 if x,y,z is match() with all sub-regions
|
||||
else inside = 0
|
||||
@ -253,3 +242,14 @@ void RegIntersect::shape_update()
|
||||
for (int ilist = 0; ilist < nregion; ilist++)
|
||||
regions[list[ilist]]->shape_update();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
move/rotate all sub-regions
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void RegIntersect::pretransform()
|
||||
{
|
||||
Region **regions = domain->regions;
|
||||
for (int ilist = 0; ilist < nregion; ilist++)
|
||||
regions[list[ilist]]->pretransform();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user