source: codes/icosagcm/trunk/jsrc/jinja2 @ 1055

Last change on this file since 1055 was 1055, checked in by dubos, 4 years ago

Simplify base/field.f90 to reduce repetitive code
Generate remaining repetitive code in base/field.f90 and parallel/transfert_mpi_collectives from a template

  • Property svn:executable set to *
File size: 202 bytes
Line 
1#!/bin/env python
2
3from jinja2 import Environment, FileSystemLoader
4from sys import argv
5
6env=Environment(loader=FileSystemLoader('.'))
7tpl=env.get_template(argv[1])
8source = tpl.render()
9print(source)
Note: See TracBrowser for help on using the repository browser.