Octopus
|
This module implements the ensemble class. More...
This module implements the ensemble class.
As we are using the multisystem framework to generate the replicas, only a few new features on top of the parent class multisystem_t were necessary.
Data Types | |
interface | ensemble_t |
the ensemble class More... | |
Functions/Subroutines | |
recursive class(ensemble_t) function, pointer | ensemble_constructor (namespace, n_replicas, system_factory, names, types) |
Constructor for the ensemble_t class. More... | |
recursive subroutine | ensemble_finalizer (this) |
recursive subroutine | ensemble_end (this) |
recursive subroutine | ensemble_create_interactions (this, interaction_factory, available_partners) |
create the interactions of the ensemble More... | |
recursive subroutine | ensemble_add_partners_to_list (this, list, interaction_type) |
add the container to the flat list. More... | |
|
private |
Constructor for the ensemble_t class.
This routine creates the ensemble container, reads information about the ensemble from the input file, and creates the replicas using the factory. It also creates the interactions of the systems inside each replica.
[in] | namespace | namespace of the ensemble |
[in] | n_replicas | number of replicas to create |
[in] | system_factory | system factory to be used by multisystem_basic_t |
[in] | names | names of the systems to be created in each replica |
[in] | types | types of the systems to be created in each replica |
Definition at line 162 of file ensemble.F90.
|
private |
Definition at line 204 of file ensemble.F90.
|
private |
Definition at line 214 of file ensemble.F90.
|
private |
create the interactions of the ensemble
This routine overrides the corresponding routine of multisystem_t.
The important difference is that it only creates interactions between subsystems of each replica and interactions of these subsystems with all partners outside the ensemble.
[in,out] | this | system for which interactions are created. |
[in] | interaction_factory | factory that creates the actual interactions |
[in] | available_partners | a list of available partners for the given system. |
Definition at line 235 of file ensemble.F90.
|
private |
add the container to the flat list.
Definition at line 271 of file ensemble.F90.