Skip to content

Commit

Permalink
CPlot: corr. bug display ODS
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Aug 2, 2024
1 parent 075cfab commit 665e324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cassiopee/CPlot/CPlot/PyTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ def display360ODS__(t, posCam, posEye, dirCam, offscreen, exportRez, stereoShift
for i in range(nangles):

# simple parallel hack
#if i%Cmpi.size != Cmpi.rank: continue
if i%Cmpi.size != Cmpi.rank: continue

theta = i*360./nangles-180.

Expand Down Expand Up @@ -1219,7 +1219,7 @@ def display360ODS__(t, posCam, posEye, dirCam, offscreen, exportRez, stereoShift
point = T.rotate(point, (0,0,0), v2p, -90)
v2z = C.getValue(point, 'GridCoordinates', 0)

posEye0 = Vector.add(v1z, posCam0)
posEye0 = Vector.add(v1z, posCam)
dirCam0 = v2z
print('top %d / %d'%(i,nangles))

Expand All @@ -1240,7 +1240,7 @@ def display360ODS__(t, posCam, posEye, dirCam, offscreen, exportRez, stereoShift
point = T.rotate(point, (0,0,0), v2p, 90)
v2z = C.getValue(point, 'GridCoordinates', 0)

posEye0 = Vector.add(v1z, posCam0)
posEye0 = Vector.add(v1z, posCam)
dirCam0 = v2z
print('bot %d / %d'%(i,nangles))

Expand Down
6 changes: 1 addition & 5 deletions Cassiopee/Initiator/Initiator/PyTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from .MeshSize import meshSize
from .Adim import adim1, adim2, adim3, dim1, dim2, dim3, dim4

try: range = xrange
except: pass

try:
import Converter
import Converter.PyTree as C
Expand Down Expand Up @@ -270,8 +267,7 @@ def _overlayField(t1, t2, MInf=0.5, loc='nodes'):
"""Overlay the field of zone1 and zone2 in a unique zone."""
nodes = Internal.getZones(t1)
nodes2 = Internal.getZones(t2)
for c in range(len(nodes)):
z1 = nodes[c]
for c, z1 in enumerate(nodes):
if loc == 'centers':
a1 = C.getAllFields(z1, 'centers')[0]
x1 = C.getFields(Internal.__GridCoordinates__, z1)[0]
Expand Down

0 comments on commit 665e324

Please sign in to comment.