Skip to content

Commit 76588e9

Browse files
committed
more text + debug
1 parent 8ba00bb commit 76588e9

13 files changed

+322
-70
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ docs/src/examples/
22

33
*build*
44
*egg-info/
5+
sg_execution_times.rst

docs/src/conf.py

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Add any Sphinx extension module names here, as strings.
22
extensions = [
33
"sphinx.ext.viewcode",
4+
"sphinx.ext.intersphinx",
45
"sphinx_gallery.load_style",
56
]
67

@@ -12,3 +13,14 @@
1213

1314
htmlhelp_basename = "COSMO software-cookbook"
1415
html_theme = "furo"
16+
17+
18+
intersphinx_mapping = {
19+
"ase": ("https://wiki.fysik.dtu.dk/ase/", None),
20+
"metatensor": ("https://lab-cosmo.github.io/metatensor/latest/", None),
21+
"numpy": ("https://numpy.org/doc/stable/", None),
22+
"matplotlib": ("https://matplotlib.org/stable/", None),
23+
"python": ("https://docs.python.org/3", None),
24+
"rascaline": ("https://luthaf.fr/rascaline/latest/", None),
25+
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
26+
}

docs/src/index.rst

-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@ COSMO Software Cookbook
99
:caption: Table of Contents
1010
:maxdepth: 1
1111

12-
examples/roy_gch/roy_gch
13-
examples/lode_linear/lode_tutorial
14-
examples/sample_selection/sample_selection
15-
examples/gaas_map/gaas_map
1612
examples/cp2k_run_batch/setup_reftraj

examples/cp2k_run_batch/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
production/
2+
cp2k.out

examples/cp2k_run_batch/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ CP2K bash computation
22
============================
33

44
This is an example of a batch calculation using CP2K.
5-
The inputs are a set of structures in `./data/example.xyz`
5+
The inputs are a set of structures in `example.xyz`
66
using the parameters defined in `./data/reftraj_template.cp2k`
77
importing basisset and pseudopotentials from the local CP2K install.

examples/cp2k_run_batch/cp2k.inp

+158
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
!!! Generated by ASE !!!
2+
@SET PREP 0
3+
@SET SCF_GUESS RESTART
4+
@SET SCREEN_ON_INITIAL_P TRUE
5+
@IF ${PREP}
6+
@SET SCF_GUESS ATOMIC
7+
@SET SCREEN_ON_INITIAL_P FALSE
8+
@ENDIF
9+
&MOTION
10+
&PRINT
11+
&CELL
12+
&EACH
13+
MD 1
14+
&END EACH
15+
&END CELL
16+
&FORCES
17+
&EACH
18+
MD 1
19+
&END EACH
20+
&END FORCES
21+
&END PRINT
22+
&MD
23+
ENSEMBLE REFTRAJ
24+
&REFTRAJ
25+
EVAL_ENERGY_FORCES TRUE
26+
EVAL_FORCES TRUE
27+
CELL_FILE_NAME reftraj.cell
28+
TRAJ_FILE_NAME reftraj.xyz
29+
FIRST_SNAPSHOT 1
30+
VARIABLE_VOLUME TRUE
31+
LAST_SNAPSHOT 1
32+
&END REFTRAJ
33+
&END MD
34+
&END MOTION
35+
&FORCE_EVAL
36+
&PRINT
37+
&FORCES
38+
&EACH
39+
MD 1
40+
&END EACH
41+
&END FORCES
42+
&END PRINT
43+
&DFT
44+
BASIS_SET_FILE_NAME /opt/homebrew/share/cp2k/data/GTH_BASIS_SETS
45+
BASIS_SET_FILE_NAME /opt/homebrew/share/cp2k/data/BASIS_ADMM
46+
POTENTIAL_FILE_NAME /opt/homebrew/share/cp2k/data/POTENTIAL
47+
&MGRID
48+
CUTOFF 400
49+
&END MGRID
50+
&SCF
51+
SCF_GUESS ${SCF_GUESS}
52+
MAX_SCF 20
53+
EPS_SCF 5.0E-7
54+
&OT
55+
MINIMIZER DIIS
56+
PRECONDITIONER FULL_ALL
57+
&END OT
58+
&OUTER_SCF
59+
MAX_SCF 20
60+
EPS_SCF 5.0E-7
61+
&END OUTER_SCF
62+
&END SCF
63+
&QS
64+
EPS_DEFAULT 1.0E-12
65+
EPS_PGF_ORB 1.0E-16
66+
EXTRAPOLATION_ORDER 5
67+
&END QS
68+
&XC # revPBE0-TC-D3
69+
&XC_FUNCTIONAL
70+
&PBE
71+
PARAMETRIZATION REVPBE
72+
SCALE_X 0.75
73+
SCALE_C 1.0
74+
&END PBE
75+
&END XC_FUNCTIONAL
76+
&HF
77+
FRACTION 0.25
78+
&SCREENING
79+
EPS_SCHWARZ 1.0E-6
80+
SCREEN_ON_INITIAL_P ${SCREEN_ON_INITIAL_P}
81+
&END SCREENING
82+
&MEMORY
83+
MAX_MEMORY 37000
84+
EPS_STORAGE_SCALING 0.1
85+
&END MEMORY
86+
&INTERACTION_POTENTIAL
87+
POTENTIAL_TYPE TRUNCATED
88+
CUTOFF_RADIUS 3.0
89+
T_C_G_DATA /opt/homebrew/share/cp2k/data/t_c_g.dat
90+
&END INTERACTION_POTENTIAL
91+
&HF_INFO
92+
&END HF_INFO
93+
&END HF
94+
&VDW_POTENTIAL
95+
POTENTIAL_TYPE PAIR_POTENTIAL
96+
&PAIR_POTENTIAL
97+
TYPE DFTD3
98+
R_CUTOFF 15
99+
LONG_RANGE_CORRECTION TRUE
100+
REFERENCE_FUNCTIONAL revPBE0
101+
PARAMETER_FILE_NAME /opt/homebrew/share/cp2k/data/dftd3.dat
102+
&END PAIR_POTENTIAL
103+
&END VDW_POTENTIAL
104+
&XC_GRID
105+
XC_DERIV SPLINE2
106+
&END XC_GRID
107+
&END XC
108+
&AUXILIARY_DENSITY_MATRIX_METHOD
109+
METHOD BASIS_PROJECTION
110+
ADMM_PURIFICATION_METHOD MO_DIAG
111+
&END AUXILIARY_DENSITY_MATRIX_METHOD
112+
&END DFT
113+
&SUBSYS
114+
&TOPOLOGY
115+
COORD_FILE_NAME init.xyz
116+
COORD_FILE_FORMAT XYZ
117+
CONN_FILE_FORMAT GENERATE
118+
&END TOPOLOGY
119+
&CELL
120+
ABC [angstrom] 3.911173 3.911173 3.911173
121+
PERIODIC XYZ
122+
A 3.911173230168922377e+00 0.000000000000000000e+00 0.000000000000000000e+00
123+
B 0.000000000000000000e+00 3.911173230168922377e+00 0.000000000000000000e+00
124+
C 0.000000000000000000e+00 0.000000000000000000e+00 3.911173230168922377e+00
125+
&END CELL
126+
&KIND H
127+
BASIS_SET TZV2P-GTH
128+
BASIS_SET AUX_FIT cpFIT3
129+
POTENTIAL GTH-PBE-q1
130+
&END KIND
131+
&KIND O
132+
BASIS_SET TZV2P-GTH
133+
BASIS_SET AUX_FIT cpFIT3
134+
POTENTIAL GTH-PBE-q6
135+
&END KIND
136+
&KIND Na
137+
BASIS_SET TZV2P-GTH
138+
BASIS_SET AUX_FIT cpFIT3
139+
POTENTIAL GTH-PBE-q9
140+
&END KIND
141+
&KIND Cl
142+
BASIS_SET TZV2P-GTH
143+
BASIS_SET AUX_FIT cpFIT3
144+
POTENTIAL GTH-PBE-q7
145+
&END KIND
146+
&COORD
147+
H 2.557992919999999781e+00 3.047632299999999961e-01 6.788335399999999575e-01
148+
H 1.467392919999999989e+00 5.358410000000000117e-01 3.590156770000000108e+00
149+
O 1.786192919999999962e+00 3.826856460000000126e+00 3.117135400000000112e-01
150+
H 3.520580310000000157e+00 2.559366770000000013e+00 2.710913230000000063e+00
151+
H 8.486338500000000229e-01 2.050096770000000124e+00 1.854526459999999988e+00
152+
O 9.813384999999999470e-02 1.756606770000000095e+00 2.338376460000000101e+00
153+
&END COORD
154+
&END SUBSYS
155+
&END FORCE_EVAL
156+
&GLOBAL
157+
PROJECT cp2k
158+
&END GLOBAL
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/opt/homebrew/bin/cp2k.ssmp
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: cp2k_run_batch
22
dependencies:
3-
- python=3.11
3+
- python=3.10
44
- pip
5-
- conda-forge/label/cf202003::cp2k
5+
- conda-forge::libopenblas
6+
- conda-forge::cp2k
67
- pip:
78
- ase
8-
File renamed without changes.

0 commit comments

Comments
 (0)