git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3645 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -93,6 +93,19 @@ RegIntersect::~RegIntersect()
|
||||
delete [] contact;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user