lbaf.IO.lbsVTDataWriter.VTDataWriter class

A class to write load directives for VT as JSON files

Each file is named as <base-name>.<node>.out, where <node> spans the number of MPI ranks that VT is utilizing.

Methods

def _VTDataWriter__create_tasks(self, rank_id, objects, migratable)
Create per-object entries to be outputted to JSON.
def _VTDataWriter__get_communications(self, phase: Model.lbsPhase.Phase, rank: Model.lbsRank.Rank)
Create communication entries to be outputted to JSON.
def _json_serializer(self, rank_phases_double) -> str
Write one JSON per rank for list of phase instances.
def _json_writer(self, rank_phases_double) -> str
Write one JSON per rank for list of phase instances.
def write(self, phases: dict)
Write one JSON per rank for dictonary of phases.

Special methods

def __init__(self, logger: logging.Logger, output_dir: typing.Optional[str], stem: str, parameters: dict)
Class constructor

Method documentation

def lbaf.IO.lbsVTDataWriter.VTDataWriter.__init__(self, logger: logging.Logger, output_dir: typing.Optional[str], stem: str, parameters: dict)

Class constructor

:param phase: Phase instance :param stem: file name stem :param parameters: a dictionary of parameters