-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathcprstart.f90
74 lines (74 loc) · 2.28 KB
/
cprstart.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
!
! Copyright (C) 2002-2008 Quantum ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!
!==============================================================================
!*** Molecular Dynamics using Density-Functional Theory ****
!*** this is the main routine driver for Car-Parrinello simulations ****
!******************************************************************************
!*** See the documentation coming with the Quantum ESPRESSO distribution ****
!*** for credits, references, appropriate citation of this code ****
!******************************************************************************
!
!----------------------------------------------------------------------------
PROGRAM main
!----------------------------------------------------------------------------
!
USE input, ONLY : iosys_pseudo, iosys
USE read_input, ONLY : read_input_file
USE mp_global, ONLY : mp_startup
USE io_global, ONLY : ionode, ionode_id
USE environment, ONLY : environment_start
USE check_stop, ONLY : check_stop_init
USE mp_images, ONLY : intra_image_comm
USE command_line_options, ONLY : input_file_
!
IMPLICIT NONE
!
! ... program starts here
!
! ... initialize MPI (parallel processing handling)
!
CALL mp_startup ( diag_in_band_group = .true. , what_band_group = 0 )
!
! ... start the environment
!
CALL environment_start( 'CP' )
!
! reading plugin arguments
!
IF(ionode) CALL plugin_arguments()
CALL plugin_arguments_bcast(ionode_id,intra_image_comm)
!
! ... open, read, close the input file
!
CALL read_input_file( 'CP', input_file_ )
!
! ... read in pseudopotentials files and then
! ... copy pseudopotential parameters into internal variables
!
CALL iosys_pseudo()
!
! ... copy-in input parameters from input_parameter module
!
CALL iosys()
!
! call to void routine for user define / plugin patches initializations
! temporary moved to init_run
! CALL plugin_initialization()
!
!
CALL check_stop_init()
!
CALL cpr_loop( 1 )
!
CALL stop_run()
CALL do_stop( .TRUE. )
!
STOP
!
END PROGRAM main