MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / __init__

Method __init__

dedalus/core/solvers.py:443–457  ·  view source on GitHub ↗
(self, problem, **kw)

Source from the content-addressed store, hash-verified

441 matrices = ['dF']
442
443 def __init__(self, problem, **kw):
444 logger.debug('Beginning NLBVP instantiation')
445 super().__init__(problem, **kw)
446 self.perturbations = problem.perturbations
447 # Copy valid modes from variables to perturbations (may have been changed after problem instantiation)
448 for pert, var in zip(problem.perturbations, problem.variables):
449 pert.valid_modes[:] = var.valid_modes
450 self.iteration = 0
451 # Create RHS handler
452 F_handler = self.evaluator.add_system_handler(iter=1, group='F')
453 for eq in problem.eqs:
454 F_handler.add_task(eq['F'])
455 F_handler.build_system()
456 self.F = F_handler.fields
457 logger.debug('Finished NLBVP instantiation')
458
459 def print_subproblem_ranks(self, subproblems=None):
460 """Print rank of each subproblem LHS."""

Callers

nothing calls this directly

Calls 4

add_system_handlerMethod · 0.80
build_systemMethod · 0.80
__init__Method · 0.45
add_taskMethod · 0.45

Tested by

no test coverage detected