mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 11:53:32 +01:00
Forgot touches
Version:1.1.21
This commit is contained in:
parent
5dcdf67eb8
commit
cb52b89616
26
src/touches.py
Normal file
26
src/touches.py
Normal file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from irpf90_t import *
|
||||
from util import *
|
||||
from variables import variables
|
||||
|
||||
FILENAME=irpdir+'irp_touches.irp.F90'
|
||||
|
||||
def create():
|
||||
out = []
|
||||
l = variables.keys()
|
||||
l.sort
|
||||
for v in l:
|
||||
var = variables[v]
|
||||
if var.is_touched:
|
||||
out += var.toucher
|
||||
|
||||
out = map(lambda x: "%s\n"%(x),out)
|
||||
if not same_file(FILENAME,out):
|
||||
file = open(FILENAME,'w')
|
||||
file.writelines(out)
|
||||
file.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
create()
|
||||
|
@ -1 +1 @@
|
||||
version = "1.1.20"
|
||||
version = "1.1.21"
|
||||
|
Loading…
Reference in New Issue
Block a user