10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-30 16:15:41 +01:00

irpf90_entities pretty

This commit is contained in:
Anthony Scemama 2015-01-30 17:29:15 +01:00
parent 0ca05d60d2
commit 373c638f73
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
IRPF90 = python ../src/irpf90.py -I input -a -d IRPF90 = python ../src/irpf90.py -I input -a -d
FC = gfortran FC = ifort -profile-functions
FCFLAGS= -O2 FCFLAGS= -O2
SRC= SRC=

View File

@ -36,8 +36,8 @@ from util import *
def do_print_short(file,var): def do_print_short(file,var):
assert type(var) == Variable assert type(var) == Variable
print >>file, "%s : %s :: %s %s"%( \ print >>file, "%s : %s :: %s %s"%( \
var.line.filename[0].ljust(25), var.line.filename[0].ljust(35),
var.type.ljust(25), var.type.ljust(30),
var.name.ljust(25), var.name.ljust(25),
build_dim(var.dim) ) build_dim(var.dim) )

View File

@ -125,6 +125,7 @@ class Sub(object):
###################################################################### ######################################################################
if __name__ == '__main__': if __name__ == '__main__':
from preprocessed_text import preprocessed_text from preprocessed_text import preprocessed_text
from variables import variables
from subroutines import subroutines from subroutines import subroutines
print subroutines['run'].needs print map(lambda x: variables[x].needs, subroutines['full_ci'].needs)
print subroutines['run'].to_provide print subroutines['full_ci'].calls