49#include "../base/base_uses.f90"
55 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'molecule_kind_types'
61 INTEGER :: id_name = 0
66 CHARACTER(LEN=default_string_length) :: name =
""
71 INTEGER :: a = 0, b = 0
77 INTEGER :: a = 0, b = 0, c = 0
83 INTEGER :: a = 0, b = 0, c = 0
89 INTEGER :: a = 0, b = 0, c = 0, d = 0
95 INTEGER :: a = 0, b = 0, c = 0, d = 0
101 INTEGER :: a = 0, b = 0, c = 0, d = 0
107 LOGICAL :: active = .false.
108 REAL(kind=
dp) :: k0 = 0.0_dp
109 END TYPE restraint_type
114 INTEGER :: inp_seq_num = 0
115 LOGICAL :: use_points = .false.
116 REAL(kind=
dp) :: expected_value = 0.0_dp
117 REAL(kind=
dp) :: expected_value_growth_speed = 0.0_dp
118 REAL(kind=
dp) :: target_velocity = 0.0_dp
119 INTEGER,
POINTER,
DIMENSION(:) :: i_atoms => null()
124 INTEGER :: a = 0, b = 0, c = 0
125 REAL(kind=
dp) :: dab = 0.0_dp, dac = 0.0_dp, dbc = 0.0_dp
130 INTEGER :: a = 0, b = 0, c = 0, d = 0
131 REAL(kind=
dp) :: dab = 0.0_dp, dac = 0.0_dp, dbc = 0.0_dp, &
132 dad = 0.0_dp, dbd = 0.0_dp, dcd = 0.0_dp
137 INTEGER :: a = 0, b = 0, c = 0, d = 0
138 REAL(kind=
dp) :: wbc = 0.0_dp, wdc = 0.0_dp
144 INTEGER :: fixd = 0, itype = 0
145 REAL(kind=
dp),
DIMENSION(3) :: coord = 0.0_dp
149 INTEGER :: ifixd_index = 0, ikind = 0
154 TYPE(
atom_type),
DIMENSION(:),
POINTER :: atom_list => null()
156 TYPE(
bond_type),
DIMENSION(:),
POINTER :: bond_list => null()
158 TYPE(
bend_type),
DIMENSION(:),
POINTER :: bend_list => null()
160 TYPE(
ub_type),
DIMENSION(:),
POINTER :: ub_list => null()
164 TYPE(
impr_type),
DIMENSION(:),
POINTER :: impr_list => null()
168 POINTER :: colv_list => null()
173 TYPE(
shell_type),
DIMENSION(:),
POINTER :: shell_list => null()
174 CHARACTER(LEN=default_string_length) :: name =
""
175 REAL(kind=
dp) :: charge = 0.0_dp, &
177 INTEGER :: kind_number = 0, &
186 ng3x3_restraint = 0, &
188 ng4x6_restraint = 0, &
190 nvsite_restraint = 0, &
192 nfixd_restraint = 0, &
196 INTEGER :: nsgf = 0, &
198 nelectron_alpha = 0, &
200 INTEGER,
DIMENSION(:),
POINTER :: molecule_list => null()
201 LOGICAL :: molname_generated = .false.
249 IF (
ASSOCIATED(colv_list))
THEN
250 DO k = 1,
SIZE(colv_list)
251 IF (colv_list(k)%restraint%active) ncolv%nrestraint = ncolv%nrestraint + 1
252 SELECT CASE (colv_list(k)%type_id)
254 ncolv%nangle = ncolv%nangle + 1
256 ncolv%ncoord = ncolv%ncoord + 1
258 ncolv%npopulation = ncolv%npopulation + 1
260 ncolv%ngyration = ncolv%ngyration + 1
262 ncolv%nrot = ncolv%nrot + 1
264 ncolv%ndist = ncolv%ndist + 1
266 ncolv%ndfunct = ncolv%ndfunct + 1
268 ncolv%nplane_dist = ncolv%nplane_dist + 1
270 ncolv%nplane_angle = ncolv%nplane_angle + 1
272 ncolv%ntorsion = ncolv%ntorsion + 1
274 ncolv%nqparm = ncolv%nqparm + 1
276 ncolv%nxyz_diag = ncolv%nxyz_diag + 1
278 ncolv%nxyz_outerdiag = ncolv%nxyz_outerdiag + 1
280 ncolv%nhydronium_shell = ncolv%nhydronium_shell + 1
282 ncolv%nhydronium_dist = ncolv%nhydronium_dist + 1
284 ncolv%nacid_hyd_dist = ncolv%nacid_hyd_dist + 1
286 ncolv%nacid_hyd_shell = ncolv%nacid_hyd_shell + 1
288 ncolv%nreactionpath = ncolv%nreactionpath + 1
290 ncolv%ncombinecvs = ncolv%ncombinecvs + 1
292 ncolv%nvoronoiipz = ncolv%nvoronoiipz + 1
294 cpabort(
"Unknown colvar type")
298 ncolv%ntot = ncolv%ndist + &
302 ncolv%nplane_dist + &
303 ncolv%nplane_angle + &
308 ncolv%nxyz_outerdiag + &
309 ncolv%nhydronium_shell + &
310 ncolv%nhydronium_dist + &
311 ncolv%nacid_hyd_dist + &
312 ncolv%nacid_hyd_shell + &
313 ncolv%nreactionpath + &
314 ncolv%ncombinecvs + &
315 ncolv%npopulation + &
331 INTEGER,
INTENT(IN) :: nmolecule_kind
333 INTEGER :: imolecule_kind
335 IF (
ASSOCIATED(molecule_kind_set))
THEN
339 ALLOCATE (molecule_kind_set(nmolecule_kind))
341 DO imolecule_kind = 1, nmolecule_kind
342 molecule_kind_set(imolecule_kind)%kind_number = imolecule_kind
344 molecule_kind_set(imolecule_kind)%ncolv)
360 INTEGER :: i, imolecule_kind, j, nmolecule_kind
362 IF (
ASSOCIATED(molecule_kind_set))
THEN
364 nmolecule_kind =
SIZE(molecule_kind_set)
366 DO imolecule_kind = 1, nmolecule_kind
368 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%atom_list))
THEN
369 DEALLOCATE (molecule_kind_set(imolecule_kind)%atom_list)
371 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%bend_kind_set))
THEN
372 DO i = 1,
SIZE(molecule_kind_set(imolecule_kind)%bend_kind_set)
373 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%bend_kind_set(i)%legendre%coeffs))
THEN
374 DEALLOCATE (molecule_kind_set(imolecule_kind)%bend_kind_set(i)%legendre%coeffs)
377 DEALLOCATE (molecule_kind_set(imolecule_kind)%bend_kind_set)
379 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%bend_list))
THEN
380 DEALLOCATE (molecule_kind_set(imolecule_kind)%bend_list)
382 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%ub_list))
THEN
383 DEALLOCATE (molecule_kind_set(imolecule_kind)%ub_list)
385 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%ub_kind_set))
THEN
388 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%impr_list))
THEN
389 DEALLOCATE (molecule_kind_set(imolecule_kind)%impr_list)
391 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%impr_kind_set))
THEN
392 DO i = 1,
SIZE(molecule_kind_set(imolecule_kind)%impr_kind_set)
395 DEALLOCATE (molecule_kind_set(imolecule_kind)%impr_kind_set)
397 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%opbend_list))
THEN
398 DEALLOCATE (molecule_kind_set(imolecule_kind)%opbend_list)
400 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%opbend_kind_set))
THEN
401 DEALLOCATE (molecule_kind_set(imolecule_kind)%opbend_kind_set)
403 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%bond_kind_set))
THEN
404 DEALLOCATE (molecule_kind_set(imolecule_kind)%bond_kind_set)
406 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%bond_list))
THEN
407 DEALLOCATE (molecule_kind_set(imolecule_kind)%bond_list)
409 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%colv_list))
THEN
410 DO j = 1,
SIZE(molecule_kind_set(imolecule_kind)%colv_list)
411 DEALLOCATE (molecule_kind_set(imolecule_kind)%colv_list(j)%i_atoms)
413 DEALLOCATE (molecule_kind_set(imolecule_kind)%colv_list)
415 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%g3x3_list))
THEN
416 DEALLOCATE (molecule_kind_set(imolecule_kind)%g3x3_list)
418 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%g4x6_list))
THEN
419 DEALLOCATE (molecule_kind_set(imolecule_kind)%g4x6_list)
421 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%vsite_list))
THEN
422 DEALLOCATE (molecule_kind_set(imolecule_kind)%vsite_list)
424 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%fixd_list))
THEN
425 DEALLOCATE (molecule_kind_set(imolecule_kind)%fixd_list)
427 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%torsion_kind_set))
THEN
428 DO i = 1,
SIZE(molecule_kind_set(imolecule_kind)%torsion_kind_set)
431 DEALLOCATE (molecule_kind_set(imolecule_kind)%torsion_kind_set)
433 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%shell_list))
THEN
434 DEALLOCATE (molecule_kind_set(imolecule_kind)%shell_list)
436 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%torsion_list))
THEN
437 DEALLOCATE (molecule_kind_set(imolecule_kind)%torsion_list)
439 IF (
ASSOCIATED(molecule_kind_set(imolecule_kind)%molecule_list))
THEN
440 DEALLOCATE (molecule_kind_set(imolecule_kind)%molecule_list)
444 DEALLOCATE (molecule_kind_set)
446 NULLIFY (molecule_kind_set)
508 ub_list, impr_list, opbend_list, colv_list, fixd_list, &
509 g3x3_list, g4x6_list, vsite_list, torsion_list, shell_list, &
510 name, mass, charge, kind_number, natom, nbend, nbond, nub, &
511 nimpr, nopbend, nconstraint, nconstraint_fixd, nfixd, ncolv, ng3x3, ng4x6, &
512 nvsite, nfixd_restraint, ng3x3_restraint, ng4x6_restraint, &
513 nvsite_restraint, nrestraints, nmolecule, nsgf, nshell, ntorsion, &
514 molecule_list, nelectron, nelectron_alpha, nelectron_beta, &
515 bond_kind_set, bend_kind_set, &
516 ub_kind_set, impr_kind_set, opbend_kind_set, torsion_kind_set, &
520 TYPE(
atom_type),
DIMENSION(:),
OPTIONAL,
POINTER :: atom_list
521 TYPE(
bond_type),
DIMENSION(:),
OPTIONAL,
POINTER :: bond_list
522 TYPE(
bend_type),
DIMENSION(:),
OPTIONAL,
POINTER :: bend_list
523 TYPE(
ub_type),
DIMENSION(:),
OPTIONAL,
POINTER :: ub_list
524 TYPE(
impr_type),
DIMENSION(:),
OPTIONAL,
POINTER :: impr_list
525 TYPE(
opbend_type),
DIMENSION(:),
OPTIONAL,
POINTER :: opbend_list
527 OPTIONAL,
POINTER :: colv_list
529 OPTIONAL,
POINTER :: fixd_list
531 OPTIONAL,
POINTER :: g3x3_list
533 OPTIONAL,
POINTER :: g4x6_list
535 OPTIONAL,
POINTER :: vsite_list
537 POINTER :: torsion_list
538 TYPE(
shell_type),
DIMENSION(:),
OPTIONAL,
POINTER :: shell_list
539 CHARACTER(LEN=default_string_length), &
540 INTENT(OUT),
OPTIONAL :: name
541 REAL(kind=
dp),
OPTIONAL :: mass, charge
542 INTEGER,
INTENT(OUT),
OPTIONAL :: kind_number, natom, nbend, nbond, nub, &
543 nimpr, nopbend, nconstraint, &
544 nconstraint_fixd, nfixd
546 INTEGER,
INTENT(OUT),
OPTIONAL :: ng3x3, ng4x6, nvsite, nfixd_restraint, ng3x3_restraint, &
547 ng4x6_restraint, nvsite_restraint, nrestraints, nmolecule, nsgf, nshell, ntorsion
548 INTEGER,
DIMENSION(:),
OPTIONAL,
POINTER :: molecule_list
549 INTEGER,
INTENT(OUT),
OPTIONAL :: nelectron, nelectron_alpha, &
552 POINTER :: bond_kind_set
554 POINTER :: bend_kind_set
556 POINTER :: ub_kind_set
558 POINTER :: impr_kind_set
560 POINTER :: opbend_kind_set
562 POINTER :: torsion_kind_set
563 LOGICAL,
INTENT(OUT),
OPTIONAL :: molname_generated
567 IF (
PRESENT(atom_list)) atom_list => molecule_kind%atom_list
568 IF (
PRESENT(bend_list)) bend_list => molecule_kind%bend_list
569 IF (
PRESENT(bond_list)) bond_list => molecule_kind%bond_list
570 IF (
PRESENT(impr_list)) impr_list => molecule_kind%impr_list
571 IF (
PRESENT(opbend_list)) opbend_list => molecule_kind%opbend_list
572 IF (
PRESENT(ub_list)) ub_list => molecule_kind%ub_list
573 IF (
PRESENT(bond_kind_set)) bond_kind_set => molecule_kind%bond_kind_set
574 IF (
PRESENT(bend_kind_set)) bend_kind_set => molecule_kind%bend_kind_set
575 IF (
PRESENT(ub_kind_set)) ub_kind_set => molecule_kind%ub_kind_set
576 IF (
PRESENT(impr_kind_set)) impr_kind_set => molecule_kind%impr_kind_set
577 IF (
PRESENT(opbend_kind_set)) opbend_kind_set => molecule_kind%opbend_kind_set
578 IF (
PRESENT(torsion_kind_set)) torsion_kind_set => molecule_kind%torsion_kind_set
579 IF (
PRESENT(colv_list)) colv_list => molecule_kind%colv_list
580 IF (
PRESENT(g3x3_list)) g3x3_list => molecule_kind%g3x3_list
581 IF (
PRESENT(g4x6_list)) g4x6_list => molecule_kind%g4x6_list
582 IF (
PRESENT(vsite_list)) vsite_list => molecule_kind%vsite_list
583 IF (
PRESENT(fixd_list)) fixd_list => molecule_kind%fixd_list
584 IF (
PRESENT(torsion_list)) torsion_list => molecule_kind%torsion_list
585 IF (
PRESENT(shell_list)) shell_list => molecule_kind%shell_list
586 IF (
PRESENT(name)) name = molecule_kind%name
587 IF (
PRESENT(molname_generated)) molname_generated = molecule_kind%molname_generated
588 IF (
PRESENT(mass)) mass = molecule_kind%mass
589 IF (
PRESENT(charge)) charge = molecule_kind%charge
590 IF (
PRESENT(kind_number)) kind_number = molecule_kind%kind_number
591 IF (
PRESENT(natom)) natom = molecule_kind%natom
592 IF (
PRESENT(nbend)) nbend = molecule_kind%nbend
593 IF (
PRESENT(nbond)) nbond = molecule_kind%nbond
594 IF (
PRESENT(nub)) nub = molecule_kind%nub
595 IF (
PRESENT(nimpr)) nimpr = molecule_kind%nimpr
596 IF (
PRESENT(nopbend)) nopbend = molecule_kind%nopbend
597 IF (
PRESENT(nconstraint)) nconstraint = (molecule_kind%ncolv%ntot - molecule_kind%ncolv%nrestraint) + &
598 3*(molecule_kind%ng3x3 - molecule_kind%ng3x3_restraint) + &
599 6*(molecule_kind%ng4x6 - molecule_kind%ng4x6_restraint) + &
600 3*(molecule_kind%nvsite - molecule_kind%nvsite_restraint)
601 IF (
PRESENT(ncolv)) ncolv = molecule_kind%ncolv
602 IF (
PRESENT(ng3x3)) ng3x3 = molecule_kind%ng3x3
603 IF (
PRESENT(ng4x6)) ng4x6 = molecule_kind%ng4x6
604 IF (
PRESENT(nvsite)) nvsite = molecule_kind%nvsite
606 IF (
PRESENT(nfixd)) nfixd = molecule_kind%nfixd
608 IF (
PRESENT(nconstraint_fixd))
THEN
610 IF (molecule_kind%nfixd /= 0)
THEN
611 DO i = 1,
SIZE(molecule_kind%fixd_list)
612 IF (molecule_kind%fixd_list(i)%restraint%active) cycle
613 SELECT CASE (molecule_kind%fixd_list(i)%itype)
615 nconstraint_fixd = nconstraint_fixd + 1
617 nconstraint_fixd = nconstraint_fixd + 2
619 nconstraint_fixd = nconstraint_fixd + 3
624 IF (
PRESENT(ng3x3_restraint)) ng3x3_restraint = molecule_kind%ng3x3_restraint
625 IF (
PRESENT(ng4x6_restraint)) ng4x6_restraint = molecule_kind%ng4x6_restraint
626 IF (
PRESENT(nvsite_restraint)) nvsite_restraint = molecule_kind%nvsite_restraint
627 IF (
PRESENT(nfixd_restraint)) nfixd_restraint = molecule_kind%nfixd_restraint
628 IF (
PRESENT(nrestraints)) nrestraints = molecule_kind%ncolv%nrestraint + &
629 molecule_kind%ng3x3_restraint + &
630 molecule_kind%ng4x6_restraint + &
631 molecule_kind%nvsite_restraint
632 IF (
PRESENT(nmolecule)) nmolecule = molecule_kind%nmolecule
633 IF (
PRESENT(nshell)) nshell = molecule_kind%nshell
634 IF (
PRESENT(ntorsion)) ntorsion = molecule_kind%ntorsion
635 IF (
PRESENT(nsgf)) nsgf = molecule_kind%nsgf
636 IF (
PRESENT(nelectron)) nelectron = molecule_kind%nelectron
637 IF (
PRESENT(nelectron_alpha)) nelectron_alpha = molecule_kind%nelectron_beta
638 IF (
PRESENT(nelectron_beta)) nelectron_beta = molecule_kind%nelectron_alpha
639 IF (
PRESENT(molecule_list)) molecule_list => molecule_kind%molecule_list
663 nbond, nbend, nub, ntorsion, nimpr, nopbend, &
664 nconstraint, nconstraint_fixd, nmolecule, &
668 INTEGER,
INTENT(OUT),
OPTIONAL :: maxatom, natom, nbond, nbend, nub, &
669 ntorsion, nimpr, nopbend, nconstraint, &
670 nconstraint_fixd, nmolecule, &
673 INTEGER :: ibend, ibond, iimpr, imolecule_kind, iopbend, itorsion, iub, na, nc, nc_fixd, &
674 nfixd_restraint, nm, nmolecule_kind, nrestraints_tot
676 IF (
PRESENT(maxatom)) maxatom = 0
677 IF (
PRESENT(natom)) natom = 0
678 IF (
PRESENT(nbond)) nbond = 0
679 IF (
PRESENT(nbend)) nbend = 0
680 IF (
PRESENT(nub)) nub = 0
681 IF (
PRESENT(ntorsion)) ntorsion = 0
682 IF (
PRESENT(nimpr)) nimpr = 0
683 IF (
PRESENT(nopbend)) nopbend = 0
684 IF (
PRESENT(nconstraint)) nconstraint = 0
685 IF (
PRESENT(nconstraint_fixd)) nconstraint_fixd = 0
686 IF (
PRESENT(nrestraints)) nrestraints = 0
687 IF (
PRESENT(nmolecule)) nmolecule = 0
689 nmolecule_kind =
SIZE(molecule_kind_set)
691 DO imolecule_kind = 1, nmolecule_kind
692 associate(molecule_kind => molecule_kind_set(imolecule_kind))
703 nconstraint_fixd=nc_fixd, &
704 nfixd_restraint=nfixd_restraint, &
705 nrestraints=nrestraints_tot, &
707 IF (
PRESENT(maxatom)) maxatom = max(maxatom, na)
708 IF (
PRESENT(natom)) natom = natom + na*nm
709 IF (
PRESENT(nbond)) nbond = nbond + ibond*nm
710 IF (
PRESENT(nbend)) nbend = nbend + ibend*nm
711 IF (
PRESENT(nub)) nub = nub + iub*nm
712 IF (
PRESENT(ntorsion)) ntorsion = ntorsion + itorsion*nm
713 IF (
PRESENT(nimpr)) nimpr = nimpr + iimpr*nm
714 IF (
PRESENT(nopbend)) nopbend = nopbend + iopbend*nm
715 IF (
PRESENT(nconstraint)) nconstraint = nconstraint + nc*nm + nc_fixd
716 IF (
PRESENT(nconstraint_fixd)) nconstraint_fixd = nconstraint_fixd + nc_fixd
717 IF (
PRESENT(nmolecule)) nmolecule = nmolecule + nm
718 IF (
PRESENT(nrestraints)) nrestraints = nrestraints + nm*nrestraints_tot + nfixd_restraint
776 molecule_list, atom_list, nbond, bond_list, &
777 nbend, bend_list, nub, ub_list, nimpr, impr_list, &
778 nopbend, opbend_list, ntorsion, &
779 torsion_list, fixd_list, ncolv, colv_list, ng3x3, &
780 g3x3_list, ng4x6, nfixd, g4x6_list, nvsite, &
781 vsite_list, ng3x3_restraint, ng4x6_restraint, &
782 nfixd_restraint, nshell, shell_list, &
783 nvsite_restraint, bond_kind_set, bend_kind_set, &
784 ub_kind_set, torsion_kind_set, impr_kind_set, &
785 opbend_kind_set, nelectron, nsgf, &
789 CHARACTER(LEN=*),
INTENT(IN),
OPTIONAL :: name
790 REAL(kind=dp),
OPTIONAL :: mass, charge
791 INTEGER,
INTENT(IN),
OPTIONAL :: kind_number
792 INTEGER,
DIMENSION(:),
OPTIONAL,
POINTER :: molecule_list
793 TYPE(
atom_type),
DIMENSION(:),
OPTIONAL,
POINTER :: atom_list
794 INTEGER,
INTENT(IN),
OPTIONAL :: nbond
795 TYPE(
bond_type),
DIMENSION(:),
OPTIONAL,
POINTER :: bond_list
796 INTEGER,
INTENT(IN),
OPTIONAL :: nbend
797 TYPE(
bend_type),
DIMENSION(:),
OPTIONAL,
POINTER :: bend_list
798 INTEGER,
INTENT(IN),
OPTIONAL :: nub
799 TYPE(
ub_type),
DIMENSION(:),
OPTIONAL,
POINTER :: ub_list
800 INTEGER,
INTENT(IN),
OPTIONAL :: nimpr
801 TYPE(
impr_type),
DIMENSION(:),
OPTIONAL,
POINTER :: impr_list
802 INTEGER,
INTENT(IN),
OPTIONAL :: nopbend
803 TYPE(
opbend_type),
DIMENSION(:),
OPTIONAL,
POINTER :: opbend_list
804 INTEGER,
INTENT(IN),
OPTIONAL :: ntorsion
806 POINTER :: torsion_list
808 OPTIONAL,
POINTER :: fixd_list
809 TYPE(colvar_counters),
INTENT(IN),
OPTIONAL :: ncolv
811 OPTIONAL,
POINTER :: colv_list
812 INTEGER,
INTENT(IN),
OPTIONAL :: ng3x3
814 OPTIONAL,
POINTER :: g3x3_list
815 INTEGER,
INTENT(IN),
OPTIONAL :: ng4x6, nfixd
817 OPTIONAL,
POINTER :: g4x6_list
818 INTEGER,
INTENT(IN),
OPTIONAL :: nvsite
820 OPTIONAL,
POINTER :: vsite_list
821 INTEGER,
INTENT(IN),
OPTIONAL :: ng3x3_restraint, ng4x6_restraint, &
822 nfixd_restraint, nshell
823 TYPE(
shell_type),
DIMENSION(:),
OPTIONAL,
POINTER :: shell_list
824 INTEGER,
INTENT(IN),
OPTIONAL :: nvsite_restraint
825 TYPE(bond_kind_type),
DIMENSION(:),
OPTIONAL, &
826 POINTER :: bond_kind_set
827 TYPE(bend_kind_type),
DIMENSION(:),
OPTIONAL, &
828 POINTER :: bend_kind_set
829 TYPE(ub_kind_type),
DIMENSION(:),
OPTIONAL, &
830 POINTER :: ub_kind_set
831 TYPE(torsion_kind_type),
DIMENSION(:),
OPTIONAL, &
832 POINTER :: torsion_kind_set
833 TYPE(impr_kind_type),
DIMENSION(:),
OPTIONAL, &
834 POINTER :: impr_kind_set
835 TYPE(opbend_kind_type),
DIMENSION(:),
OPTIONAL, &
836 POINTER :: opbend_kind_set
837 INTEGER,
INTENT(IN),
OPTIONAL :: nelectron, nsgf
838 LOGICAL,
INTENT(IN),
OPTIONAL :: molname_generated
842 IF (
PRESENT(atom_list))
THEN
844 molecule_kind%natom = n
845 molecule_kind%atom_list => atom_list
847 IF (
PRESENT(molname_generated)) molecule_kind%molname_generated = molname_generated
848 IF (
PRESENT(name)) molecule_kind%name = name
849 IF (
PRESENT(mass)) molecule_kind%mass = mass
850 IF (
PRESENT(charge)) molecule_kind%charge = charge
851 IF (
PRESENT(kind_number)) molecule_kind%kind_number = kind_number
852 IF (
PRESENT(nbond)) molecule_kind%nbond = nbond
853 IF (
PRESENT(bond_list)) molecule_kind%bond_list => bond_list
854 IF (
PRESENT(nbend)) molecule_kind%nbend = nbend
855 IF (
PRESENT(nelectron)) molecule_kind%nelectron = nelectron
856 IF (
PRESENT(nsgf)) molecule_kind%nsgf = nsgf
857 IF (
PRESENT(bend_list)) molecule_kind%bend_list => bend_list
858 IF (
PRESENT(nub)) molecule_kind%nub = nub
859 IF (
PRESENT(ub_list)) molecule_kind%ub_list => ub_list
860 IF (
PRESENT(ntorsion)) molecule_kind%ntorsion = ntorsion
861 IF (
PRESENT(torsion_list)) molecule_kind%torsion_list => torsion_list
862 IF (
PRESENT(nimpr)) molecule_kind%nimpr = nimpr
863 IF (
PRESENT(impr_list)) molecule_kind%impr_list => impr_list
864 IF (
PRESENT(nopbend)) molecule_kind%nopbend = nopbend
865 IF (
PRESENT(opbend_list)) molecule_kind%opbend_list => opbend_list
866 IF (
PRESENT(ncolv)) molecule_kind%ncolv = ncolv
867 IF (
PRESENT(colv_list)) molecule_kind%colv_list => colv_list
868 IF (
PRESENT(ng3x3)) molecule_kind%ng3x3 = ng3x3
869 IF (
PRESENT(g3x3_list)) molecule_kind%g3x3_list => g3x3_list
870 IF (
PRESENT(ng4x6)) molecule_kind%ng4x6 = ng4x6
871 IF (
PRESENT(nvsite)) molecule_kind%nvsite = nvsite
872 IF (
PRESENT(nfixd)) molecule_kind%nfixd = nfixd
873 IF (
PRESENT(nfixd_restraint)) molecule_kind%nfixd_restraint = nfixd_restraint
874 IF (
PRESENT(ng3x3_restraint)) molecule_kind%ng3x3_restraint = ng3x3_restraint
875 IF (
PRESENT(ng4x6_restraint)) molecule_kind%ng4x6_restraint = ng4x6_restraint
876 IF (
PRESENT(nvsite_restraint)) molecule_kind%nvsite_restraint = nvsite_restraint
877 IF (
PRESENT(g4x6_list)) molecule_kind%g4x6_list => g4x6_list
878 IF (
PRESENT(vsite_list)) molecule_kind%vsite_list => vsite_list
879 IF (
PRESENT(fixd_list)) molecule_kind%fixd_list => fixd_list
880 IF (
PRESENT(bond_kind_set)) molecule_kind%bond_kind_set => bond_kind_set
881 IF (
PRESENT(bend_kind_set)) molecule_kind%bend_kind_set => bend_kind_set
882 IF (
PRESENT(ub_kind_set)) molecule_kind%ub_kind_set => ub_kind_set
883 IF (
PRESENT(torsion_kind_set)) molecule_kind%torsion_kind_set => torsion_kind_set
884 IF (
PRESENT(impr_kind_set)) molecule_kind%impr_kind_set => impr_kind_set
885 IF (
PRESENT(opbend_kind_set)) molecule_kind%opbend_kind_set => opbend_kind_set
886 IF (
PRESENT(nshell)) molecule_kind%nshell = nshell
887 IF (
PRESENT(shell_list)) molecule_kind%shell_list => shell_list
888 IF (
PRESENT(molecule_list))
THEN
889 n =
SIZE(molecule_list)
890 molecule_kind%nmolecule = n
891 molecule_kind%molecule_list => molecule_list
903 SUBROUTINE write_molecule_kind(molecule_kind, output_unit)
905 INTEGER,
INTENT(in) :: output_unit
907 CHARACTER(LEN=default_string_length) :: name
908 INTEGER :: iatom, imolecule, natom, nmolecule
909 TYPE(atomic_kind_type),
POINTER :: atomic_kind
911 IF (output_unit > 0)
THEN
912 natom =
SIZE(molecule_kind%atom_list)
913 nmolecule =
SIZE(molecule_kind%molecule_list)
916 atomic_kind => molecule_kind%atom_list(1)%atomic_kind
917 CALL get_atomic_kind(atomic_kind=atomic_kind, name=name)
918 WRITE (unit=output_unit, fmt=
"(/,T2,I5,A,T36,A,A,T64,A)") &
919 molecule_kind%kind_number, &
920 ". Molecule kind: "//trim(molecule_kind%name), &
921 "Atomic kind name: ", trim(name)
922 WRITE (unit=output_unit, fmt=
"(T9,A,L1,T55,A,T75,I6)") &
923 "Automatic name: ", molecule_kind%molname_generated, &
924 "Number of molecules:", nmolecule
926 WRITE (unit=output_unit, fmt=
"(/,T2,I5,A,T50,A,T75,I6,/,T22,A)") &
927 molecule_kind%kind_number, &
928 ". Molecule kind: "//trim(molecule_kind%name), &
929 "Number of atoms: ", natom, &
930 "Atom Atomic kind name"
932 atomic_kind => molecule_kind%atom_list(iatom)%atomic_kind
933 CALL get_atomic_kind(atomic_kind=atomic_kind, name=name)
934 WRITE (unit=output_unit, fmt=
"(T20,I6,(7X,A18))") &
937 WRITE (unit=output_unit, fmt=
"(/,T9,A,L1)") &
938 "The name was automatically generated: ", &
939 molecule_kind%molname_generated
940 WRITE (unit=output_unit, fmt=
"(T9,A,I6,/,T9,A,(T30,5I10))") &
941 "Number of molecules: ", nmolecule,
"Molecule list:", &
942 (molecule_kind%molecule_list(imolecule), imolecule=1, nmolecule)
943 IF (molecule_kind%nbond > 0)
THEN
944 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
945 "Number of bonds: ", molecule_kind%nbond
947 IF (molecule_kind%nbend > 0)
THEN
948 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
949 "Number of bends: ", molecule_kind%nbend
951 IF (molecule_kind%nub > 0)
THEN
952 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
953 "Number of Urey-Bradley:", molecule_kind%nub
955 IF (molecule_kind%ntorsion > 0)
THEN
956 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
957 "Number of torsions: ", molecule_kind%ntorsion
959 IF (molecule_kind%nimpr > 0)
THEN
960 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
961 "Number of improper: ", molecule_kind%nimpr
963 IF (molecule_kind%nopbend > 0)
THEN
964 WRITE (unit=output_unit, fmt=
"(1X,A30,I6)") &
965 "Number of out opbends: ", molecule_kind%nopbend
969 END SUBROUTINE write_molecule_kind
981 TYPE(section_vals_type),
INTENT(IN) :: subsys_section
983 CHARACTER(len=*),
PARAMETER :: routinen =
'write_molecule_kind_set'
985 INTEGER :: handle, imolecule_kind, natom, nbend, &
986 nbond, nimpr, nmolecule, &
987 nmolecule_kind, nopbend, ntors, &
988 ntotal, nub, output_unit
989 LOGICAL :: all_single_atoms
990 TYPE(cp_logger_type),
POINTER :: logger
992 CALL timeset(routinen, handle)
995 logger => cp_get_default_logger()
996 output_unit = cp_print_key_unit_nr(logger, subsys_section, &
997 "PRINT%MOLECULES", extension=
".Log")
998 IF (output_unit > 0)
THEN
999 WRITE (unit=output_unit, fmt=
"(/,/,T2,A)")
"MOLECULE KIND INFORMATION"
1001 nmolecule_kind =
SIZE(molecule_kind_set)
1003 all_single_atoms = .true.
1004 DO imolecule_kind = 1, nmolecule_kind
1005 natom =
SIZE(molecule_kind_set(imolecule_kind)%atom_list)
1006 nmolecule =
SIZE(molecule_kind_set(imolecule_kind)%molecule_list)
1007 IF (natom*nmolecule > 1) all_single_atoms = .false.
1010 IF (all_single_atoms)
THEN
1011 WRITE (unit=output_unit, fmt=
"(/,/,T2,A)") &
1012 "All atoms are their own molecule, skipping detailed information"
1014 DO imolecule_kind = 1, nmolecule_kind
1015 CALL write_molecule_kind(molecule_kind_set(imolecule_kind), output_unit)
1026 ntotal = nbond + nbend + nub + ntors + nimpr + nopbend
1027 IF (ntotal > 0)
THEN
1028 WRITE (unit=output_unit, fmt=
"(/,/,T2,A,T45,A30,I6)") &
1029 "MOLECULE KIND SET INFORMATION", &
1030 "Total Number of bonds: ", nbond
1031 WRITE (unit=output_unit, fmt=
"(T45,A30,I6)") &
1032 "Total Number of bends: ", nbend
1033 WRITE (unit=output_unit, fmt=
"(T45,A30,I6)") &
1034 "Total Number of Urey-Bradley:", nub
1035 WRITE (unit=output_unit, fmt=
"(T45,A30,I6)") &
1036 "Total Number of torsions: ", ntors
1037 WRITE (unit=output_unit, fmt=
"(T45,A30,I6)") &
1038 "Total Number of improper: ", nimpr
1039 WRITE (unit=output_unit, fmt=
"(T45,A30,I6)") &
1040 "Total Number of opbends: ", nopbend
1043 CALL cp_print_key_finished_output(output_unit, logger, subsys_section, &
1046 CALL timestop(handle)
1060 INTEGER,
INTENT(IN) :: icolv, iw
1062 CHARACTER(LEN=30) :: type_string
1065 cpassert(
ASSOCIATED(colvar_constraint))
1066 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1067 "COLVAR| Number", icolv
1068 SELECT CASE (colvar_constraint%type_id)
1070 type_string =
"Undefined"
1071 CASE (dist_colvar_id)
1072 type_string =
"Distance"
1073 CASE (coord_colvar_id)
1074 type_string =
"Coordination number"
1075 CASE (torsion_colvar_id)
1076 type_string =
"Torsion"
1077 CASE (angle_colvar_id)
1078 type_string =
"Angle"
1079 CASE (plane_distance_colvar_id)
1080 type_string =
"Plane distance"
1081 CASE (rotation_colvar_id)
1082 type_string =
"Rotation"
1083 CASE (dfunct_colvar_id)
1084 type_string =
"Distance function"
1085 CASE (qparm_colvar_id)
1086 type_string =
"Q parameter"
1087 CASE (hydronium_shell_colvar_id)
1088 type_string =
"Hydronium shell"
1089 CASE (reaction_path_colvar_id)
1090 type_string =
"Reaction path"
1091 CASE (combine_colvar_id)
1092 type_string =
"Combine"
1093 CASE (population_colvar_id)
1094 type_string =
"Population"
1095 CASE (plane_plane_angle_colvar_id)
1096 type_string =
"Angle plane-plane"
1097 CASE (gyration_colvar_id)
1098 type_string =
"Gyration radius"
1099 CASE (rmsd_colvar_id)
1100 type_string =
"RMSD"
1101 CASE (distance_from_path_colvar_id)
1102 type_string =
"Distance from path"
1103 CASE (xyz_diag_colvar_id)
1104 type_string =
"XYZ diag"
1105 CASE (xyz_outerdiag_colvar_id)
1106 type_string =
"XYZ outerdiag"
1111 CASE (hbp_colvar_id)
1113 CASE (ring_puckering_colvar_id)
1114 type_string =
"Ring puckering"
1115 CASE (mindist_colvar_id)
1116 type_string =
"Distance point-plane"
1117 CASE (acid_hyd_dist_colvar_id)
1118 type_string =
"Acid hydronium distance"
1119 CASE (acid_hyd_shell_colvar_id)
1120 type_string =
"Acid hydronium shell"
1121 CASE (hydronium_dist_colvar_id)
1122 type_string =
"Hydronium distance"
1123 CASE (voronoiipz_colvar_id)
1124 type_string =
"Voronoi ion position"
1126 cpabort(
"Invalid collective variable ID specified. Check the code!")
1128 IF (colvar_constraint%restraint%active)
THEN
1129 WRITE (unit=iw, fmt=
"(T2,A,T51,A30)") &
1130 "COLVAR| Restraint type", adjustr(trim(type_string))
1131 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1132 "COLVAR| Restraint constant k [a.u.]", colvar_constraint%restraint%k0
1134 WRITE (unit=iw, fmt=
"(T2,A,T51,A30)") &
1135 "COLVAR| Constraint type", adjustr(trim(type_string))
1137 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1138 "COLVAR| Target value", colvar_constraint%expected_value, &
1139 "COLVAR| Target value growth speed", colvar_constraint%expected_value_growth_speed
1140 IF (colvar_constraint%use_points)
THEN
1141 WRITE (unit=iw, fmt=
"(T2,A,T78,A3)")
"COLVAR| Use points",
"Yes"
1143 WRITE (unit=iw, fmt=
"(T2,A,T79,A2)")
"COLVAR| Use points",
"No"
1159 INTEGER,
INTENT(IN) :: ifixd, iw
1162 cpassert(
ASSOCIATED(fixd_constraint))
1163 IF (fixd_constraint%restraint%active)
THEN
1164 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1165 "FIX_ATOM| Number (restraint)", ifixd
1166 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1167 "FIX_ATOM| Restraint constant k [a.u.]", fixd_constraint%restraint%k0
1169 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1170 "FIX_ATOM| Number (constraint)", ifixd
1172 WRITE (unit=iw, fmt=
"(T2,A,T71,I10)") &
1173 "FIX_ATOM| Atom index", fixd_constraint%fixd
1174 WRITE (unit=iw, fmt=
"(T2,A,T78,A3)") &
1175 "FIX_ATOM| Fixed Cartesian components", periodicity_string(fixd_constraint%itype)
1176 IF (index(periodicity_string(fixd_constraint%itype),
"X") > 0)
THEN
1177 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1178 "FIX_ATOM| X coordinate [Angstrom]", cp_unit_from_cp2k(fixd_constraint%coord(1),
"Angstrom")
1180 IF (index(periodicity_string(fixd_constraint%itype),
"Y") > 0)
THEN
1181 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1182 "FIX_ATOM| Y coordinate [Angstrom]", cp_unit_from_cp2k(fixd_constraint%coord(2),
"Angstrom")
1184 IF (index(periodicity_string(fixd_constraint%itype),
"Z") > 0)
THEN
1185 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1186 "FIX_ATOM| Z coordinate [Angstrom]", cp_unit_from_cp2k(fixd_constraint%coord(3),
"Angstrom")
1202 INTEGER,
INTENT(IN) :: ig3x3, iw
1205 cpassert(
ASSOCIATED(g3x3_constraint))
1206 IF (g3x3_constraint%restraint%active)
THEN
1207 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1208 "G3X3| Number (restraint)", ig3x3
1209 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1210 "G3X3| Restraint constant k [a.u.]", g3x3_constraint%restraint%k0
1212 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1213 "G3X3| Number (constraint)", ig3x3
1215 WRITE (unit=iw, fmt=
"(T2,A,T71,I10)") &
1216 "G3X3| Atom index a", g3x3_constraint%a, &
1217 "G3X3| Atom index b", g3x3_constraint%b, &
1218 "G3X3| Atom index c", g3x3_constraint%c
1219 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1220 "G3X3| Distance (a,b) [Angstrom]", cp_unit_from_cp2k(g3x3_constraint%dab,
"Angstrom"), &
1221 "G3X3| Distance (a,c) [Angstrom]", cp_unit_from_cp2k(g3x3_constraint%dac,
"Angstrom"), &
1222 "G3X3| Distance (b,c) [Angstrom]", cp_unit_from_cp2k(g3x3_constraint%dbc,
"Angstrom")
1237 INTEGER,
INTENT(IN) :: ig4x6, iw
1240 cpassert(
ASSOCIATED(g4x6_constraint))
1241 IF (g4x6_constraint%restraint%active)
THEN
1242 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1243 "G4X6| Number (restraint)", ig4x6
1244 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1245 "G4X6| Restraint constant k [a.u.]", g4x6_constraint%restraint%k0
1247 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1248 "G4X6| Number (constraint)", ig4x6
1250 WRITE (unit=iw, fmt=
"(T2,A,T71,I10)") &
1251 "G4X6| Atom index a", g4x6_constraint%a, &
1252 "G4X6| Atom index b", g4x6_constraint%b, &
1253 "G4X6| Atom index c", g4x6_constraint%c, &
1254 "G4X6| Atom index d", g4x6_constraint%d
1255 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1256 "G4X6| Distance (a,b) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dab,
"Angstrom"), &
1257 "G4X6| Distance (a,c) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dac,
"Angstrom"), &
1258 "G4X6| Distance (a,d) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dad,
"Angstrom"), &
1259 "G4X6| Distance (b,c) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dbc,
"Angstrom"), &
1260 "G4X6| Distance (b,d) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dbd,
"Angstrom"), &
1261 "G4X6| Distance (c,d) [Angstrom]", cp_unit_from_cp2k(g4x6_constraint%dcd,
"Angstrom")
1276 INTEGER,
INTENT(IN) :: ivsite, iw
1279 cpassert(
ASSOCIATED(vsite_constraint))
1280 IF (vsite_constraint%restraint%active)
THEN
1281 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1282 "VSITE| Number (restraint)", ivsite
1283 WRITE (unit=iw, fmt=
"(T2,A,T66,ES15.6)") &
1284 "VSITE| Restraint constant k [a.u.]", vsite_constraint%restraint%k0
1286 WRITE (unit=iw, fmt=
"(/,T2,A,T71,I10)") &
1287 "VSITE| Number (constraint)", ivsite
1289 WRITE (unit=iw, fmt=
"(T2,A,T71,I10)") &
1290 "VSITE| Atom index of virtual site", vsite_constraint%a, &
1291 "VSITE| Atom index b", vsite_constraint%b, &
1292 "VSITE| Atom index c", vsite_constraint%c, &
1293 "VSITE| Atom index d", vsite_constraint%d
1294 WRITE (unit=iw, fmt=
"(T2,A,T66,F15.8)") &
1295 "VSITE| Distance (b,c) [Angstrom]", cp_unit_from_cp2k(vsite_constraint%wbc,
"Angstrom"), &
1296 "VSITE| Distance (d,c) [Angstrom]", cp_unit_from_cp2k(vsite_constraint%wdc,
"Angstrom")
Define the atomic kind types and their sub types.
subroutine, public get_atomic_kind(atomic_kind, fist_potential, element_symbol, name, mass, kind_number, natom, atom_list, rcov, rvdw, z, qeff, apol, cpol, mm_radius, shell, shell_active, damping)
Get attributes of an atomic kind.
Handles all functions related to the CELL.
integer, parameter, public use_perd_xyz
integer, parameter, public use_perd_y
integer, parameter, public use_perd_xz
integer, parameter, public use_perd_x
integer, parameter, public use_perd_z
integer, parameter, public use_perd_yz
character(len=3), dimension(7), parameter, public periodicity_string
integer, parameter, public use_perd_xy
Initialize the collective variables types.
integer, parameter, public ring_puckering_colvar_id
integer, parameter, public population_colvar_id
integer, parameter, public voronoiipz_colvar_id
integer, parameter, public distance_from_path_colvar_id
integer, parameter, public rmsd_colvar_id
integer, parameter, public mindist_colvar_id
integer, parameter, public wc_colvar_id
integer, parameter, public acid_hyd_dist_colvar_id
integer, parameter, public xyz_outerdiag_colvar_id
integer, parameter, public plane_plane_angle_colvar_id
integer, parameter, public plane_distance_colvar_id
integer, parameter, public combine_colvar_id
integer, parameter, public gyration_colvar_id
integer, parameter, public hbp_colvar_id
integer, parameter, public rotation_colvar_id
integer, parameter, public hydronium_dist_colvar_id
integer, parameter, public coord_colvar_id
integer, parameter, public dfunct_colvar_id
integer, parameter, public no_colvar_id
integer, parameter, public angle_colvar_id
integer, parameter, public qparm_colvar_id
integer, parameter, public dist_colvar_id
integer, parameter, public u_colvar_id
integer, parameter, public hydronium_shell_colvar_id
integer, parameter, public torsion_colvar_id
integer, parameter, public xyz_diag_colvar_id
integer, parameter, public reaction_path_colvar_id
integer, parameter, public acid_hyd_shell_colvar_id
various routines to log and control the output. The idea is that decisions about where to log should ...
type(cp_logger_type) function, pointer, public cp_get_default_logger()
returns the default logger
routines to handle the output, The idea is to remove the decision of wheter to output and what to out...
subroutine, public cp_print_key_finished_output(unit_nr, logger, basis_section, print_key_path, local, ignore_should_output, on_file, mpi_io)
should be called after you finish working with a unit obtained with cp_print_key_unit_nr,...
integer function, public cp_print_key_unit_nr(logger, basis_section, print_key_path, extension, middle_name, local, log_filename, ignore_should_output, file_form, file_position, file_action, file_status, do_backup, on_file, is_new_file, mpi_io, fout, file_access)
...
real(kind=dp) function, public cp_unit_from_cp2k(value, unit_str, defaults, power)
converts from the internal cp2k units to the given unit
Define all structure types related to force field kinds.
integer, parameter, public do_ff_undef
pure subroutine, public torsion_kind_dealloc_ref(torsion_kind)
Deallocate a torsion kind element.
pure subroutine, public ub_kind_dealloc_ref(ub_kind_set)
Deallocate a ub kind set.
pure subroutine, public impr_kind_dealloc_ref()
Deallocate a impr kind element.
Defines the basic variable types.
integer, parameter, public dp
integer, parameter, public default_string_length
Define the molecule kind structure types and the corresponding functionality.
subroutine, public get_molecule_kind(molecule_kind, atom_list, bond_list, bend_list, ub_list, impr_list, opbend_list, colv_list, fixd_list, g3x3_list, g4x6_list, vsite_list, torsion_list, shell_list, name, mass, charge, kind_number, natom, nbend, nbond, nub, nimpr, nopbend, nconstraint, nconstraint_fixd, nfixd, ncolv, ng3x3, ng4x6, nvsite, nfixd_restraint, ng3x3_restraint, ng4x6_restraint, nvsite_restraint, nrestraints, nmolecule, nsgf, nshell, ntorsion, molecule_list, nelectron, nelectron_alpha, nelectron_beta, bond_kind_set, bend_kind_set, ub_kind_set, impr_kind_set, opbend_kind_set, torsion_kind_set, molname_generated)
Get informations about a molecule kind.
subroutine, public write_g4x6_constraint(g4x6_constraint, ig4x6, iw)
Write G4x6 constraint information to output unit.
subroutine, public setup_colvar_counters(colv_list, ncolv)
...
subroutine, public set_molecule_kind(molecule_kind, name, mass, charge, kind_number, molecule_list, atom_list, nbond, bond_list, nbend, bend_list, nub, ub_list, nimpr, impr_list, nopbend, opbend_list, ntorsion, torsion_list, fixd_list, ncolv, colv_list, ng3x3, g3x3_list, ng4x6, nfixd, g4x6_list, nvsite, vsite_list, ng3x3_restraint, ng4x6_restraint, nfixd_restraint, nshell, shell_list, nvsite_restraint, bond_kind_set, bend_kind_set, ub_kind_set, torsion_kind_set, impr_kind_set, opbend_kind_set, nelectron, nsgf, molname_generated)
Set the components of a molecule kind.
subroutine, public deallocate_molecule_kind_set(molecule_kind_set)
Deallocate a molecule kind set.
subroutine, public get_molecule_kind_set(molecule_kind_set, maxatom, natom, nbond, nbend, nub, ntorsion, nimpr, nopbend, nconstraint, nconstraint_fixd, nmolecule, nrestraints)
Get informations about a molecule kind set.
subroutine, public write_g3x3_constraint(g3x3_constraint, ig3x3, iw)
Write G3x3 constraint information to output unit.
subroutine, public write_molecule_kind_set(molecule_kind_set, subsys_section)
Write a moleculeatomic kind set data set to the output unit.
subroutine, public write_fixd_constraint(fixd_constraint, ifixd, iw)
Write fix atom constraint information to output unit.
subroutine, public write_colvar_constraint(colvar_constraint, icolv, iw)
Write collective variable constraint information to output unit.
subroutine, public allocate_molecule_kind_set(molecule_kind_set, nmolecule_kind)
Allocate and initialize a molecule kind set.
subroutine, public write_vsite_constraint(vsite_constraint, ivsite, iw)
Write virtual site constraint information to output unit.
Handles all possible kinds of restraints in CP2K.
Provides all information about an atomic kind.
type of a logger, at the moment it contains just a print level starting at which level it should be l...