Statistiques
| Révision :

root / src / Annul.f90

Historique | Voir | Annoter | Télécharger (1,71 ko)

1 1 pfleura2
2 1 pfleura2
      SUBROUTINE Annul(Liaisons,at,atli)
3 1 pfleura2
!  Cette routine supprime l'atome atli dans les liaisons de at
4 12 pfleura2
5 12 pfleura2
!----------------------------------------------------------------------
6 12 pfleura2
!  Copyright 2003-2014 Ecole Normale Supérieure de Lyon,
7 12 pfleura2
!  Centre National de la Recherche Scientifique,
8 12 pfleura2
!  Université Claude Bernard Lyon 1. All rights reserved.
9 12 pfleura2
!
10 12 pfleura2
!  This work is registered with the Agency for the Protection of Programs
11 12 pfleura2
!  as IDDN.FR.001.100009.000.S.P.2014.000.30625
12 12 pfleura2
!
13 12 pfleura2
!  Authors: P. Fleurat-Lessard, P. Dayal
14 12 pfleura2
!  Contact: optnpath@gmail.com
15 12 pfleura2
!
16 12 pfleura2
! This file is part of "Opt'n Path".
17 12 pfleura2
!
18 12 pfleura2
!  "Opt'n Path" is free software: you can redistribute it and/or modify
19 12 pfleura2
!  it under the terms of the GNU Affero General Public License as
20 12 pfleura2
!  published by the Free Software Foundation, either version 3 of the License,
21 12 pfleura2
!  or (at your option) any later version.
22 12 pfleura2
!
23 12 pfleura2
!  "Opt'n Path" is distributed in the hope that it will be useful,
24 12 pfleura2
!  but WITHOUT ANY WARRANTY; without even the implied warranty of
25 12 pfleura2
!
26 12 pfleura2
!  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27 12 pfleura2
!  GNU Affero General Public License for more details.
28 12 pfleura2
!
29 12 pfleura2
!  You should have received a copy of the GNU Affero General Public License
30 12 pfleura2
!  along with "Opt'n Path". If not, see <http://www.gnu.org/licenses/>.
31 12 pfleura2
!
32 12 pfleura2
! Contact The Office of Technology Licensing, valorisation@ens-lyon.fr,
33 12 pfleura2
! for commercial licensing opportunities.
34 12 pfleura2
!----------------------------------------------------------------------
35 1 pfleura2
      use Path_module, only : Nat, NMaxL
36 1 pfleura2
37 1 pfleura2
      INTEGER(4) :: Liaisons(Nat,0:NMaxL),At,Atli,I,J
38 1 pfleura2
      I=1
39 1 pfleura2
      Do WHILE ((Liaisons(at,I).NE.Atli).AND.(I.LE.Liaisons(at,0)))
40 1 pfleura2
       I=I+1
41 1 pfleura2
      END DO
42 1 pfleura2
      Do J=I,NMaxL-1
43 1 pfleura2
        Liaisons(at,J)=Liaisons(at,J+1)
44 1 pfleura2
      END DO
45 1 pfleura2
        Liaisons(at,NMaxL)=0
46 1 pfleura2
      END