Functions to retrieve fragments data from Fortran90
Functions to retrieve molecules data from Fortran90
Functions to analyze molecule topology.
More...
#include "global.h"
#include "interface.h"
#include "bind.h"
#include "color_box.h"
#include "glwindow.h"
#include "initcoord.h"
Go to the source code of this file.
|
void | duplicate_molecule (molecule *new_mol, search_molecule *old_mol) |
| create a copy of a molecule data structure
|
|
search_molecule * | duplicate_search_molecule (search_molecule *old_mol) |
| create a copy of a search molecule data structure
|
|
void | allocate_mol_for_step_ (int *sid, int *mol_in_step) |
| allocate the data to store molecule information for a MD step
|
|
void | allocate_mol_data_ () |
| allocate data to store molecule information
|
|
void | send_mol_neighbors_ (int *stp, int *mol, int *aid, int *nvs, int neigh[*nvs]) |
| update molecule typology information from Fortran90
|
|
void | update_mol_details (search_molecule *mol, int sp, int cp) |
| update molecule information
|
|
void | send_mol_details_ (int *stp, int *mol, int *ats, int *sps, int spec_in_mol[*sps], int atom_in_mol[*ats]) |
| overall molecule information from Fortran90
|
|
gboolean | are_identical_molecules (search_molecule *mol_a, search_molecule *mol_b) |
| test if 2 molecules are identicals
|
|
int * | merge_mol_data (int val_a, int val_b, int table_a[val_a], int table_b[val_b]) |
| merge molecule a and molecule b data
|
|
void | free_search_molecule_data (search_molecule *smol) |
| free search molecule data structure
|
|
void | setup_molecules_ (int *stepid) |
| setup molecule data
|
|
void | setup_menu_molecules_ () |
| prepare the menu elements related to molecule(s)
|
|
void | setup_fragments_ (int *sid, int coord[active_project -> natomes]) |
|
Functions to retrieve fragments data from Fortran90
Functions to retrieve molecules data from Fortran90
Functions to analyze molecule topology.
- Author
- Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r
Definition in file initmol.c.
◆ search_molecule
typedef struct search_molecule search_molecule |
◆ allocate_mol_data_()
void allocate_mol_data_ |
( |
| ) |
|
allocate data to store molecule information
Definition at line 178 of file initmol.c.
◆ allocate_mol_for_step_()
void allocate_mol_for_step_ |
( |
int * | sid, |
|
|
int * | mol_in_step ) |
allocate the data to store molecule information for a MD step
- Parameters
-
sid | the MD step |
mol_in_step | the number of molecule(s) for this MD step |
Definition at line 167 of file initmol.c.
◆ are_identical_molecules()
test if 2 molecules are identicals
- Parameters
-
mol_a | the 1st molecule |
mol_b | the 2nd molecule |
Definition at line 337 of file initmol.c.
◆ duplicate_molecule()
create a copy of a molecule data structure
- Parameters
-
new_mol | the new molecule |
old_mol | the molecule to copy |
Definition at line 96 of file initmol.c.
◆ duplicate_search_molecule()
create a copy of a search molecule data structure
- Parameters
-
old_mol | the search molecule data structure to copy |
Definition at line 114 of file initmol.c.
◆ free_search_molecule_data()
free search molecule data structure
- Parameters
-
smol | the search molecule data structure to free |
Definition at line 426 of file initmol.c.
◆ merge_mol_data()
int * merge_mol_data |
( |
int | val_a, |
|
|
int | val_b, |
|
|
int | table_a[val_a], |
|
|
int | table_b[val_b] ) |
merge molecule a and molecule b data
- Parameters
-
val_a | multiplicity for molecule a |
val_b | multiplicity for molecule b |
table_a | the list of molecular fragment(s) for molecule a |
table_b | the list of molecular fragment(s) for molecule b |
Definition at line 402 of file initmol.c.
◆ send_mol_details_()
void send_mol_details_ |
( |
int * | stp, |
|
|
int * | mol, |
|
|
int * | ats, |
|
|
int * | sps, |
|
|
int | spec_in_mol[ *sps], |
|
|
int | atom_in_mol[ *ats] ) |
overall molecule information from Fortran90
- Parameters
-
stp | the MD step |
mol | the molecule id |
ats | the number of atom(s) in the molecule |
sps | the number of chemical species in the molecule |
spec_in_mol | the number of atom(s) by chemical species in the molecule |
atom_in_mol | the list of atom(s) in the molecule |
Definition at line 296 of file initmol.c.
◆ send_mol_neighbors_()
void send_mol_neighbors_ |
( |
int * | stp, |
|
|
int * | mol, |
|
|
int * | aid, |
|
|
int * | nvs, |
|
|
int | neigh[ *nvs] ) |
update molecule typology information from Fortran90
- Parameters
-
stp | the MD step |
mol | the molecule id |
aid | the atom id |
nvs | the number of neighbor(s) for this atom |
neigh | the list of neighbor(s) for this atom |
Definition at line 217 of file initmol.c.
◆ setup_fragments_()
void setup_fragments_ |
( |
int * | sid, |
|
|
int | coord[active_project -> natomes] ) |
◆ setup_menu_molecules_()
void setup_menu_molecules_ |
( |
| ) |
|
◆ setup_molecules_()
void setup_molecules_ |
( |
int * | stepid | ) |
|
setup molecule data
- Parameters
-
Definition at line 457 of file initmol.c.
◆ update_mol_details()
update molecule information
- Parameters
-
mol | the molecule to update |
sp | the chemical species |
cp | the partial coordination id |
Definition at line 262 of file initmol.c.
◆ in_calc_mol
◆ pgeo
◆ tmp_mol
◆ tmp_search