Skip to content

Commit 46729fc

Browse files
[Fix] Fix dist_wrapper in solver (#978)
* do not wrap equation expression in distributed env * update requirements.txt
1 parent 6854119 commit 46729fc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ppsci/solver/solver.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,11 @@ def convert_expr(
517517
for name in container.output_expr:
518518
if isinstance(container.output_expr[name], sp.Basic):
519519
container.output_expr[name] = funcs[ind]
520-
if self.world_size > 1:
521-
container.output_expr[name] = dist_wrapper(
522-
container.output_expr[name]
523-
)
520+
# FIXME: Equation with parameter not support yet.
521+
# if self.world_size > 1:
522+
# container.output_expr[name] = dist_wrapper(
523+
# container.output_expr[name]
524+
# )
524525
ind += 1
525526

526527
if self.constraint:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hydra-core
55
imageio
66
matplotlib
77
meshio==5.3.4
8-
numpy>=1.20.0,<=1.23.1
8+
numpy>=1.20.0,<2.0.0
99
pydantic>=2.5.0
1010
pyevtk
1111
pyyaml

0 commit comments

Comments
 (0)