7.1.2.33. pycropml.writeTest_f90 module

Created on Thu Mar 28 15:39:28 2019

@author: midingoy

Add License, Header.

Use pkglts

Problems: - name of a model unit?

class pycropml.writeTest_f90.Model2Package(models, dir=None)[source]

Bases: object

TODO

DATATYPE = {'BOOLEAN': 'LOGICAL::', 'DATE': 'CHARACTER(65)', 'DATELIST': 'CHARACTER(65), DIMENSION(:), ALLOCATABLE ::', 'DOUBLE': 'REAL::', 'DOUBLELIST': 'REAL, DIMENSION(:), ALLOCATABLE ::', 'INT': 'INTEGER::', 'INTLIST': 'INTEGER, DIMENSION(:), ALLOCATABLE ::', 'STRING': 'CHARACTER(65)::', 'STRINGLIST': 'CHARACTER(65), DIMENSION(:), ALLOCATABLE ::'}
generate_algorithm(model_unit)[source]
generate_component(model_unit)[source]

Todo

generate_estimation(model_unit)[source]
generate_function_doc(model_unit)[source]
generate_package()[source]

Generate a csharp package equivalent to the xml definition.

Args: - models : a list of model - dir: the directory where the code is generated.

Returns: - None or status

generate_public_class(model_unit)[source]
generate_test(model_unit)[source]
num = 0
run()[source]

TODO.

write_tests()[source]

TODO: Manage several models rather than just one.

pycropml.writeTest_f90.signature(model)[source]
pycropml.writeTest_f90.transf(type, elem)[source]
pycropml.writeTest_f90.transfDate(type, elem)[source]
pycropml.writeTest_f90.transfDateList(type, elem)[source]
pycropml.writeTest_f90.transfDouble(type, elem)[source]
pycropml.writeTest_f90.transfSDIList(type, elem)[source]
pycropml.writeTest_f90.transfString(type, elem)[source]