11. mars 2014 kl. 12:02 skrev Markus Blatt <[email protected]>:

> Hi,
> 
> I guess this place is still wrong for the parallel case and I am
> currently struggeling to fix it.
> 
> On Fri, Jan 24, 2014 at 11:58:18AM +0000, Atgeirr Rasmussen wrote:
>> See the docs for the field face_cells. For a face f, face_cells[2*f] and 
>> face_cells[2*f+1]
>> are its cells, and the face is oriented from the first to the second. Either 
>> can be -1 if
>> the face is on the boundary.
>> 
>> In CpGrid, the OrientedEntityTable stores the neighbours (cells in this 
>> case) in
>> arbitrary order, but it does keep an orientation with the indices instead. 
>> I'll denote
>> this using "~" to mean negative orientation. So let's say that face f has 
>> two cell neighbours,
>> called a and b, and is oriented from a to b. In UG.face_cells this must be 
>> [a b]. In CpGrid,
>> the corresponding row can be either [a ~b] or [~b a]. So the use_first 
>> variable tries to 
>> see whether we should extract a from the first or second position.
>> 
>> A minor added complication is that while the UG always stores two, the 
>> CpGrid stores just one
>> cell for boundary faces.
> 
> Yes it does. But what is to be espected for the boundary faces (just
> a, no b)? Is it always like this:
> 
> UG [a -1]
> CpGrid [a]


CpGrid: [a] -> UnstruncturedGrid [a, -1] as you say.
But [~a] -> [-1, a] instead (letting ~ denote negative orientation).

(if I misunderstood what you asked about, feel free to ask again…)

Atgeirr


_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to