10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +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
FC = gfortran
FC = ifort -profile-functions
FCFLAGS= -O2
SRC=

View File

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

View File

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