![]() |
Stellarator-Tools
|
Base class representing a vmec_context. This contains a copy of every variable that is needed to define the VMEC state. More...
Public Member Functions | |
FINAL | vmec_context_destruct (this) |
Deconstruct a vmec_context_class object. | |
procedure | set_context (this) |
Sets the current context to the vmec_context_class object. | |
procedure | get_context (this) |
Gets the current context from the VMEC internal state. | |
procedure | sync_state (this, recon_comm) |
Syncronize the vmec_context to children. | |
procedure | sync_child (this, index, recon_comm) |
Syncronize a child vmec_context to the parent. | |
Base class representing a vmec_context. This contains a copy of every variable that is needed to define the VMEC state.
procedure vmec_context::vmec_context_class::get_context | ( | class (vmec_context_class), intent(inout) | this | ) |
Gets the current context from the VMEC internal state.
Copy the internal vmec state to the context object.
[in,out] | this | A vmec_context_class instance. |
procedure vmec_context::vmec_context_class::set_context | ( | class (vmec_context_class), intent(in) | this | ) |
Sets the current context to the vmec_context_class object.
This sets this context to be the VMEC state.
[in] | this | A vmec_context_class instance. |
procedure vmec_context::vmec_context_class::sync_child | ( | class (vmec_context_class), intent(inout) | this, |
integer, intent(in) | index, | ||
integer, intent(in) | recon_comm | ||
) |
Syncronize a child vmec_context to the parent.
Syncs data between a child and the parent process. If MPI support is not compiled in this subroutine reduces to a no op. This syncs the VMEC variables directly.
[in,out] | this | A vmec_context_class instance. |
[in] | index | Reconstruction rank to sync. |
[in] | recon_comm | MPI communicator for the reconstruction processes. |
procedure vmec_context::vmec_context_class::sync_state | ( | class (vmec_context_class), intent(inout) | this, |
integer, intent(in) | recon_comm | ||
) |
Syncronize the vmec_context to children.
Syncs data between the parent and child processes. If MPI support is not compiled in this subroutine reduces to a no op. This syncs the VMEC variables directly.
[in,out] | this | A vmec_context_class instance. |
[in] | recon_comm | MPI communicator for the reconstruction processes. |
|
final |
Deconstruct a vmec_context_class object.
Deallocates memory and uninitializes a vmec_context_class object.
[in,out] | this | A vmec_context_class instance. |