Regression: load_sim_for_plot initializes a fine resolution
Created originally on Bitbucket by avmo (Ashwin Vishnu)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
- Show closed items
Link issues together to show that they're related.
Learn more.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author Maintainer
Created originally on Bitbucket by avmo (Ashwin Vishnu)
Seems the reason is
params.ONLY_COARSE_OPER
is not respected. - Author Maintainer
Created originally on Bitbucket by paugier (Pierre Augier)
I agree that it is indeed critical !
We have to fix this
params.ONLY_COARSE_OPER
option. - Author Maintainer
Created originally on Bitbucket by avmo (Ashwin Vishnu)
Side effect
====================================================================== ERROR: test_forcing_output (solvers.ns2d.test.test_solver.TestSolverNS2D) ---------------------------------------------------------------------- Traceback (most recent call last): File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/solvers/ns2d/test/test_solver.py", line 105, in test_forcing_output sim2 = fls.load_sim_for_plot(sim.output.path_run) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/util/util.py", line 217, in load_sim_for_plot sim = solver.Simul(params) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/solvers/base.py", line 178, in __init__ self.forcing = Forcing(self) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/base.py", line 121, in __init__ self.forcing_maker = ClassForcing(sim) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/specific.py", line 753, in __init__ super(TimeCorrelatedRandomPseudoSpectral, self).__init__(sim) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/specific.py", line 704, in __init__ super(RandomSimplePseudoSpectral, self).__init__(sim) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/specific.py", line 468, in __init__ super(NormalizedForcing, self).__init__(sim) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/specific.py", line 194, in __init__ self._check_forcing_shape([n], sim.oper.shapeX_seq) File "/scratch/avmo/src/fluidmeta/fluidsim/fluidsim/base/forcing/specific.py", line 157, in _check_forcing_shape "any(np.greater({}, {}))".format(shape_forcing, shape) NotImplementedError: The resolution is too small for the required forcing: any(np.greater([16], (4, 4))) ----------------------------------------------------------------------
- Author Maintainer
Created originally on Bitbucket by avmo (Ashwin Vishnu)
Seems to be solved by https://bitbucket.org/fluiddyn/fluidsim/pull-requests/8. Will merge after I ensure there are no other "side-effects".
- Author Maintainer
Created originally on Bitbucket by avmo (Ashwin Vishnu)
Fixed in e3d97e87382e
Please register or sign in to reply