File: create_files.py

package info (click to toggle)
abinit 9.10.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 518,712 kB
  • sloc: xml: 877,568; f90: 577,240; python: 80,760; perl: 7,019; ansic: 4,585; sh: 1,925; javascript: 601; fortran: 557; cpp: 454; objc: 323; makefile: 77; csh: 42; pascal: 31
file content (23 lines) | stat: -rwxr-xr-x 569 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Author: Samuel Ponc\'e
# Date: 24/04/2013
# Script create the files file to compute the ZPR

import numpy as np

nbQ = 2500
files_name = 'temperature.files'

with open(files_name,'w') as O:
  O.write("1\n")
  O.write("ZPM_para_1\n")
  O.write("0.1\n")
  O.write("n\n")
  O.write(str(nbQ)+"\n")
  for ii in np.arange(nbQ):
    O.write("Q_"+str(ii)+"/abo_DS3_DDB\n")
  for ii in np.arange(nbQ):
    O.write("Q_"+str(ii)+"/abo_DS2_EIG.nc\n")
  for ii in np.arange(nbQ):
    O.write("Q_"+str(ii)+"/abo_DS3_EIGR2D\n")
  O.write("Q_0/abo_DS1_EIG.nc")