[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] parameter cycle definition.



Dear all,

 

Thank you for the proposition of handling the pb.

 

I found how to manage it (with the help of the answers).

The PAR vector needs to be define with it maximum possible length (depending on the parameter).

Some changes needs to be done for the declaration of the variables parameters (by ALLOCATABLE declaration and then ALLOCATE by reading the parameter that define the length of it.

The NPAR variables needs than to be adapted depending on the length of the parameters (to avoid trnsys error of length between parameter to be declared et the one actually declared).

 

The TYPE is now well functioning and I can work on the interesting part of it…. The physical interpretation!!

 

Thank you all,

Best regards

 

Xavier Faure

CSTB

Enveloppes & Revêtements

Caractérisation Physique des Matériaux

24 rue Joseph Fourier

38400 Saint Martin d'Heres

Tel : 33 (0)4 76 76 25 74

Fax : 33 (0)4 76 76 25 60

web : www.cstb.fr


De : trnsys-users-bounces@engr.wisc.edu [mailto:trnsys-users-bounces@engr.wisc.edu] De la part de FAURE Xavier
Envoyé : jeudi 5 octobre 2006 10:09
À : 'trnsys-users@engr.wisc.edu'
Objet : [TRNSYS-users] parameter cycle definition.

 

Hy,

 

I’m programming a new type on the trnsys environment and i need de define cycle in parameter definition.

 

I was wondering how should be define the PAR vector in fortran since it length is a function of its first and second values?

 

When exporting the type as a fortran file, no difference appeared within the declaration of number of parameters (NP) and the PAR vector comparing with type without any cycle definition.

 

Can anyone give a hand for the declaration pb ?

 

Thank you by advance

Regards

 

Xavier Faure

CSTB

Enveloppes & Revêtements

Caractérisation Physique des Matériaux

24 rue Joseph Fourier

38400 Saint Martin d'Heres

Tel : 33 (0)4 76 76 25 74

Fax : 33 (0)4 76 76 25 60

web : www.cstb.fr