Skip to content

Commit 4a84de3

Browse files
rename xxx_NPOINTS_EVAL to xxx_NPOINT_EVAL
1 parent dc0e834 commit 4a84de3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/darcy/darcy2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ def poisson_ref_compute_func(_in):
131131
optimizer = ppsci.optimizer.Adam(1e-3)((model,))
132132

133133
# set validator
134-
NPOINTS_EVAL = NPOINT_PDE
134+
NPOINT_EVAL = NPOINT_PDE
135135
residual_validator = ppsci.validate.GeometryValidator(
136136
equation["Poisson"].equations,
137137
{"poisson": poisson_ref_compute_func},
138138
geom["rect"],
139139
{
140140
"dataset": "NamedArrayDataset",
141-
"total_size": NPOINTS_EVAL,
141+
"total_size": NPOINT_EVAL,
142142
"batch_size": 8192,
143143
"sampler": {"name": "BatchSampler"},
144144
},

examples/ldc/ldc2d_steady_Re10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@
122122
optimizer = ppsci.optimizer.Adam(lr_scheduler)((model,))
123123

124124
# set validator
125-
NPOINTS_EVAL = NPOINT_PDE
125+
NPOINT_EVAL = NPOINT_PDE
126126
residual_validator = ppsci.validate.GeometryValidator(
127127
equation["NavierStokes"].equations,
128128
{"momentum_x": 0, "continuity": 0, "momentum_y": 0},
129129
geom["rect"],
130130
{
131131
"dataset": "NamedArrayDataset",
132-
"total_size": NPOINTS_EVAL,
132+
"total_size": NPOINT_EVAL,
133133
"batch_size": 8192,
134134
"sampler": {"name": "BatchSampler"},
135135
},

0 commit comments

Comments
 (0)