From 373c638f7380bfd2ddbfbbb7a2cde7b49bb9862c Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 30 Jan 2015 17:29:15 +0100 Subject: [PATCH] irpf90_entities pretty --- example/Makefile | 2 +- src/create_man.py | 4 ++-- src/subroutine.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/Makefile b/example/Makefile index 2b8aa7f..4f5be72 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,5 +1,5 @@ IRPF90 = python ../src/irpf90.py -I input -a -d -FC = gfortran +FC = ifort -profile-functions FCFLAGS= -O2 SRC= diff --git a/src/create_man.py b/src/create_man.py index 9bb8bdf..6a6edf2 100644 --- a/src/create_man.py +++ b/src/create_man.py @@ -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) ) diff --git a/src/subroutine.py b/src/subroutine.py index 9b47da3..0eb4acf 100644 --- a/src/subroutine.py +++ b/src/subroutine.py @@ -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