add mutual solver-weighting link
This commit is contained in:
committed by
Giovanni Canali
parent
973d0c05ab
commit
bacd7e202a
@@ -44,7 +44,7 @@ class SolverInterface(lightning.pytorch.LightningModule, metaclass=ABCMeta):
|
||||
weighting = _NoWeighting()
|
||||
check_consistency(weighting, WeightingInterface)
|
||||
self._pina_weighting = weighting
|
||||
weighting.condition_names = list(self._pina_problem.conditions.keys())
|
||||
weighting._solver = self
|
||||
|
||||
# check consistency use_lt
|
||||
check_consistency(use_lt, bool)
|
||||
|
||||
Reference in New Issue
Block a user