Comments (4)
Original comment by Benjamin Brown (Bitbucket: Benjamin Brown).
Implementing this in integrator looks like it requires adding a verbosity flag to the integrator call:
#!python
def __init__(self, problem, domain, timestepper, verbose=True):
# Input parameters
self.problem = problem
self.domain = domain
# Output control
self.verbose = verbose
and then in the ok():
def:
#!python
@property
def ok(self):
if self.time >= self.sim_stop_time:
ok_flag = False
if (self.verbose): print('Simulation stop time reached.')
elif (time.time() - self.start_time) >= self.wall_stop_time:
ok_flag = False
if (self.verbose): print('Wall stop time reached.')
elif self.iteration >= self.stop_iteration:
ok_flag = False
if (self.verbose): print('Stop iteration reached.')
else:
ok_flag = True
return ok_flag
This implementation appears to work.
from dedalus.
Original comment by J. S. Oishi (Bitbucket: jsoishi).
That will work, but a better way would be to have a code-wide verbose flag
using the not-yet-ported from Dedalus 1 configuration subsystem.
from dedalus.
Original comment by Keaton Burns (Bitbucket: kburns).
More specifically I'm planning on moving these messages to a logging handler (something like the Dedalus1 version, as well), with a global configuration system like Jeff mentioned that will control what log levels are printed, etc.
from dedalus.
Original comment by Keaton Burns (Bitbucket: kburns).
- changed state from "new" to "resolved"
As of commit acc2cd1, these messages are passed as "info" calls to the logger. Logging levels can be configured for the desired level of verbosity.
from dedalus.
Related Issues (20)
- The NLBVP solver yields NaN results when attempting to solve for the variables HOT 1
- Add option to have evaluator not evaluate on first iteration HOT 1
- Feature request: a method to toggle Dedalus output (e.g. to toggle Simulation stop time reached) HOT 1
- Overflow in 2D, flat and periodic active nematic simulation HOT 3
- NCC parsing error with operator tree
- CFL not working with half-dimensional simulations HOT 3
- Installation currently requires Cython<3 HOT 2
- EVPs: set_state() in multi-d problems runs into Nyquist mode zeroing HOT 1
- v2 master doesn not compile with cython >=3.0 HOT 2
- Simple change in boundary conditions breaks code HOT 1
- Error in running tutorials of dedalus HOT 1
- Issues with Testing After Upgrading to Dedalus v3: 'No module named 'dedalus.core.transposes' HOT 1
- dist.remedy_scales broken for ndarrays HOT 1
- Incorrect conversion for cartesian NCC HOT 3
- Inquiry about CUDA Acceleration for Dedalus HOT 2
- A brief guide to compile from source on apple silicon (M1, M2, M3)
- LBVP gets stuck at the build_solver stage HOT 1
- local_group_arrays HOT 1
- changing scales in output for vector fields causes simulations to crash
- Energy Spectrum for Rayleigh Bénard Convection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dedalus.