Skip to content

Commit 4e1cf1f

Browse files
committed
explicitly point to nonant_field
1 parent 19264ef commit 4e1cf1f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mpisppy/cylinders/hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class PHNonantHub(Hub):
232232

233233
@property
234234
def nonant_field(self):
235-
return self.send_fields[-1]
235+
return Field.NONANT
236236

237237
def setup_hub(self):
238238
## Generate some warnings if nothing is giving bounds

mpisppy/cylinders/relaxed_ph_spoke.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class RelaxedPHSpoke(Spoke, PHHub):
1818
send_fields = (*Spoke.send_fields, Field.DUALS, Field.RELAXED_NONANT, )
1919
receive_fields = (*Spoke.receive_fields, )
2020

21+
@property
22+
def nonant_field(self):
23+
return Field.RELAXED_NONANT
24+
2125
def send_boundsout(self):
2226
# overwrite PHHub.sned_boundsout (not a hub)
2327
return

0 commit comments

Comments
 (0)