Skip to content

Commit

Permalink
Merge pull request #86 from sujona/fix_general_trimer
Browse files Browse the repository at this point in the history
fix general_trimer
  • Loading branch information
gabor1 authored Mar 20, 2024
2 parents c05aff9 + 504611e commit eaa108e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions descriptors.f95
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ subroutine descriptor_finalise(this,error)
call finalise(this%descriptor_alex,error)
case(DT_DISTANCE_Nb)
call finalise(this%descriptor_distance_Nb,error)
#ifdef DESCRIPTOR_NONCOMMERCIAL
#ifdef DESCRIPTORS_NONCOMMERCIAL
case(DT_COM_DIMER)
call finalise(this%descriptor_com_dimer,error)
case(DT_MOLECULE_LO_D)
Expand Down Expand Up @@ -3690,7 +3690,7 @@ subroutine descriptor_str_add_species(this,species,descriptor_str,error)
enddo
enddo
enddo
case(DT_GENERAL_MONOMER,DT_GENERAL_DIMER,DT_WATER_MONOMER,DT_WATER_DIMER,DT_A2_DIMER,DT_AB_DIMER,DT_TRIHIS,DT_BOND_REAL_SPACE,DT_ATOM_REAL_SPACE,DT_AN_MONOMER)
case(DT_GENERAL_MONOMER,DT_GENERAL_DIMER,DT_GENERAL_TRIMER,DT_WATER_MONOMER,DT_WATER_DIMER,DT_A2_DIMER,DT_AB_DIMER,DT_TRIHIS,DT_BOND_REAL_SPACE,DT_ATOM_REAL_SPACE,DT_AN_MONOMER)
allocate(descriptor_str(1))
descriptor_str(1) = trim(this)
case(DT_DISTANCE_NB)
Expand Down
11 changes: 6 additions & 5 deletions descriptors_noncommercial.inc
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@
type(general_monomer), intent(inout) :: this
character(len=*), intent(in) :: args_str
character(len=STRING_LENGTH) :: signature_string
character(len=STRING_LENGTH), dimension(99) :: signature_fields
character(len=STRING_LENGTH_SHORT), dimension(99) :: signature_fields
integer, optional, intent(out) :: error
integer :: i,n_atoms,j

Expand Down Expand Up @@ -729,7 +729,7 @@
type(com_dimer), intent(inout) :: this
character(len=*), intent(in) :: args_str
character(len=STRING_LENGTH) :: signature_one_string, signature_two_string
character(len=STRING_LENGTH), dimension(99) :: signature_one_fields, signature_two_fields
character(len=STRING_LENGTH_SHORT), dimension(99) :: signature_one_fields, signature_two_fields
integer, optional, intent(out) :: error
integer :: i, n_atoms_one, n_atoms_two

Expand Down Expand Up @@ -803,7 +803,7 @@
type(general_dimer), intent(inout) :: this
character(len=*), intent(in) :: args_str
character(len=STRING_LENGTH) :: signature_one_string, signature_two_string
character(len=STRING_LENGTH), dimension(99) :: signature_one_fields, signature_two_fields
character(len=STRING_LENGTH_SHORT), dimension(99) :: signature_one_fields, signature_two_fields
integer, optional, intent(out) :: error
integer :: i,j, n_atoms_one, n_atoms_two, dimer_size, start, finish, d
logical, dimension(:,:), allocatable :: intermolecular
Expand Down Expand Up @@ -953,7 +953,7 @@
type(general_trimer), intent(inout) :: this
character(len=*), intent(in) :: args_str
character(len=STRING_LENGTH) :: signature_one_string, signature_two_string, signature_three_string
character(len=STRING_LENGTH), dimension(99) :: signature_one_fields, signature_two_fields, signature_three_fields
character(len=STRING_LENGTH_SHORT), dimension(99) :: signature_one_fields, signature_two_fields, signature_three_fields
integer, optional, intent(out) :: error
integer :: i,j, n_atoms_one, n_atoms_two, n_atoms_three, trimer_size, start, finish,d
logical, dimension(:,:), allocatable :: intermolecular
Expand Down Expand Up @@ -1126,7 +1126,8 @@
type(molecule_lo_d), intent(inout) :: this
character(len=*), intent(in) :: args_str
character(len=STRING_LENGTH) :: signature_string, atoms_template_string, symmetry_string, symmetry_property_name, append_file, append_string
character(len=STRING_LENGTH), dimension(99) :: signature_fields, symmetry_rows, row_fields, append_rows,template_rows
character(len=STRING_LENGTH), dimension(99) :: append_rows,template_rows !symmetry_rows
character(len=STRING_LENGTH_SHORT), dimension(99) :: signature_fields, row_fields
integer, optional, intent(out) :: error
integer :: i,n_atoms,j,n_symm_rows, current_depth, start, finish, i_component, atom_j, N_atom_pairs, atom_k,n_append_rows, old_size, n_perms,n_template_rows
integer, dimension(:,:), allocatable :: equivalents_input, bonds_to_append, tmp_permutations
Expand Down

0 comments on commit eaa108e

Please sign in to comment.