Message Boards

Back

How add a new input to a subroutine in processes?

GS
Gholamreza Shiravani, modified 9 Days ago.

How add a new input to a subroutine in processes?

Padawan Posts: 50 Join Date: 6/25/16 Recent Posts

Dear D3D-Delwaq community,

I want to define a new variable as fine Sediment concentration in calsed.f subroutine. I see different IPs (IP(1)=IPOINT(1) to IP(12)=IPOINT(12)) which refferes to Input Parameters/functions/seg-functions. Then using PMSA-array the values of These IPs are assigned to variables (e.g.  N       = PMSA( IP4 )). The question is, when I want to define a new variable should :1-assign a new IP-number (e.g. IP(14)=IPOINT(14)) and then using PMSA(IP14), assigne the value to the new variable. Is it true that PMSA-function reads the Input data (.inp-file) and assigne the variables with the same name in processes variables the  predifined values in .inp-file? Moreover, the IPs do not show whether they are Input- or Output-variables, how can it distinguish between Input and outpout variables?