Skip to content

Commit 77fec86

Browse files
add 'area' from input_dict into output_dict
1 parent e117596 commit 77fec86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ppsci/utils/expression.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ def train_forward(
6565
else:
6666
raise TypeError(f"expr type({type(expr)}) is invalid")
6767

68+
# put field 'area' into output_dict
69+
if "area" in input_dicts[i]:
70+
output_dict["area"] = input_dicts[i]["area"]
71+
6872
output_dicts.append(output_dict)
6973

7074
# clear differentiation cache

0 commit comments

Comments
 (0)