From cb52b89616bd5a6d084d9c6e6ad1a49fec16207c Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 17 Sep 2009 11:46:06 +0200 Subject: [PATCH] Forgot touches Version:1.1.21 --- src/touches.py | 26 ++++++++++++++++++++++++++ src/version.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/touches.py diff --git a/src/touches.py b/src/touches.py new file mode 100644 index 0000000..e773a5b --- /dev/null +++ b/src/touches.py @@ -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() + diff --git a/src/version.py b/src/version.py index 73e2b2c..deb399a 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version = "1.1.20" +version = "1.1.21"