Module to define lennard-jones interaction. More...
| Data Types | |
| type | type_ljgrid | 
| type | type_position_atom | 
| independent, used by other modules could extend with charges  More... | |
| Functions/Subroutines | |
| subroutine | allocate_position_atom (this, nb_atoms) | 
| Allocate array for position of the atoms.  More... | |
| subroutine | copy_position_atom (this, pdest) | 
| Copy atom position.  More... | |
| subroutine | deallocate_position_atom (this) | 
| Deallocate p_pos_atom.  More... | |
| subroutine | allocate_ljgrid (this, nb_grids) | 
| Constructor.  More... | |
| subroutine | copy_ljgrid (this, pdest) | 
| subroutine | deallocate_ljgrid (this, opt_copy_omp) | 
| Delete lj grid.  More... | |
| subroutine | set_ljgrid (this, filename, nb, fct) | 
| Set one lennard-jones grid, assign to the nb element of the array.  More... | |
| subroutine | set_atom_lj (this, filename, nb, atom_type) | 
| Set one atom_type, assign to element nb in array.  More... | |
| subroutine | print_info_ljgrid (this) | 
Module to define lennard-jones interaction.
| subroutine mod_ljgrid::allocate_ljgrid | ( | type ( type_ljgrid ) | this, | 
| integer, intent(in) | nb_grids | ||
| ) | 
Constructor.
Allocate arrays of pointers, nullified by default and still empty New do not allocate the array, easier for tests Will be correctly allocated in function set_lj_X
First allocate both arrays, but asymetric by default, need to test if null or not Later, allocate only needed ?
| subroutine mod_ljgrid::allocate_position_atom | ( | type ( type_position_atom ) | this, | 
| integer, intent(in) | nb_atoms | ||
| ) | 
Allocate array for position of the atoms.
| this | : instance of mod_ljgrid | 
| nb_atoms | : size of the array, always (3 , nb_atoms ) | 
| subroutine mod_ljgrid::copy_ljgrid | ( | type ( type_ljgrid ), intent(in) | this, | 
| type ( type_ljgrid ), pointer | pdest | ||
| ) | 
| subroutine mod_ljgrid::copy_position_atom | ( | type ( type_position_atom ), intent(in) | this, | 
| type ( type_position_atom ), pointer | pdest | ||
| ) | 
Copy atom position.
| this | : instance of type_position_atom | 
| pdest | : pointer to the destination of type_position | 
| subroutine mod_ljgrid::deallocate_ljgrid | ( | type ( type_ljgrid ) | this, | 
| logical, intent(in), optional | opt_copy_omp | ||
| ) | 
Delete lj grid.
| this | : instance of type_ljgrid | 
| opt_copy_omp | : optionaly do not delete the associated sogrid and flexible. Default delete all | 
| subroutine mod_ljgrid::deallocate_position_atom | ( | type ( type_position_atom ) | this | ) | 
Deallocate p_pos_atom.
Check if associated done inside the destructor
| this | : instance of type_position_atom | 
| subroutine mod_ljgrid::print_info_ljgrid | ( | type ( type_ljgrid ) | this | ) | 
| subroutine mod_ljgrid::set_atom_lj | ( | type ( type_ljgrid ) | this, | 
| character, dimension(*), intent(in) | filename, | ||
| integer, intent(in) | nb, | ||
| character, dimension(*), intent(in) | atom_type | ||
| ) | 
Set one atom_type, assign to element nb in array.
First version, read the pdb and extract the psotiosion of the atom
later should accept array from read_pdb, prepare_atom_protein
| subroutine mod_ljgrid::set_ljgrid | ( | type ( type_ljgrid ) | this, | 
| character, dimension(*), intent(in) | filename, | ||
| integer, intent(in) | nb, | ||
| real ( kind=8 ) | fct | ||
| ) | 
Set one lennard-jones grid, assign to the nb element of the array.
nb indicates which place in array, filename, only the filename
 1.8.13
Imprint/Privacy
 1.8.13
Imprint/Privacy