Skip to content

Closing MOAB file opened in source.F90? #51

@erelson

Description

@erelson

A question arising from my not having worked with some aspects of MOAB/DagMC before...

Currently, the code in source.F90 opens source.h5m and leaves the mesh object open (presumably this means it's stored in RAM?) after initially loading information about the voxels/source strengths/etc. Each particle history has to retrieve the vertices of the sampled voxel, so we keep the mesh open. At present, source.F90 never closes the mesh object.

Is this an issue?

  • Would we reduce the memory footprint by storing vertices information (only mesh info we need after setup) ourselves?
    • If DagMCNP is using the same mesh for geometry/meshtal purposes, would accessing the same opened mesh object make sense?
  • Should I find a way to make sure the mesh is closed once the last history has sampled its starting point? (From experience it doesn't seem like problems arise from not closing the file...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions