Hi, all:
I have create a IS for every cell in dmplex by the following steps:
1. Creating a integer array which size is matched to the number of
cells.
2. Use the routine "ISCreateGeneral" to create a corresponding IS.
Is there any routine which can create a IS for every cell in the
dmplex directly?,
I don't think so as Plex would have to somehow know what geom quantity to use to define the size of IS (e.g. vertex, cell, face, edge)
and what is the difference between ISCopy() and
ISDuplicate()?
ISDuplicate allocates memory for a new with the same comm and layout as the original IS AND copies values from the original IS into the new one. (Note that this is slightly different from other duplicate functions like VecDuplicate which only allocate memory and does not copy values from the orig vec.)
ISCopy does not allocate memory for the IS (passed as the second arg), it only performs the copy of values.
Thanks
Dave
Thanks,
leejearl
On 2017年05月28日 19:35, Matthew Knepley
wrote:
--
李季
西北工业大学航空学院流体力学系
Phone: 17792092487
QQ: 188524324