gem.fragment.Fragment.load_fragment

static Fragment.load_fragment(filename, solver)[source]

Load the fragment parameters from a file.

Read-only, so unlike save_fragment() it needs no rank guard: every rank can call it and they all end up with the same fragment.

Parameters:
  • filename – str. Path to the file containing the fragment parameters.

  • solver – gemSolver object required at fragment initialization. It is not saved in the file and must be provided.