Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > passed arguments setting issues > passed arguments setting issues.  

FluidEarth Discussions: passed arguments setting issues.

Body

hi,
 
i'm going to have to answer this one in a couple of separate replies, i'm afraid, as there are potentially a few things to cover.
 
to get you started, i have spotted a couple of things straight away:
 
1. ths strings in Engine.f90 of DIVAST_hydro do not match the strings in DIVAST_Hydro.xml. basically, you have "..._IN" in the fortran code, but "..._OUT" in the .xml file. no data will be coming in to your code, whether 1D, 2D or 3D until you get this sorted out. also, the size of both the OUT and IN arrays that are passing/receiving code must be the same size - for ThreeD01_OUT/IN, you had different sized arrays in the two different xml files. i didn't check the others, but you will need to make sure this is right.
 
2. the way your code loops over 3D variables (over i,j,k) in the GET/SET methods (both codes) doesn't look right to me. attached a jpg showing how i quickly rewrote this. basically, i treat k as the outer loop as i want all i,j in a single plane to be looped over first and then i want to change to another plane
 
i think these changes will get you going - attached is an OUT.txt from DIVAST_AdveDiffu where i changed the string in your Engine.f90 (see jpg) composition and the get/set methods. the composition ran, and the variable i was passing ThreeD01 seemed to increase in both output files
 
have a go at making these changes and see if you get data to move between the models. i will go through your code in more detail a little later in the day, and post any more changes if i find them.
 
hope this helps,
 
gordon 

From: ZZhang
Posted: 10 June 2010 15:56
Subject: passed arguments setting issues.

Hi, Gordon,
I have several questions about how to set passed arguments in attached pdf file.
The rar file contains the two example model.
Look forward to your reply. Thank you.
Attachments
OUT.txt    
ThreeD01_OUT.JPG    
Content Type: Message
Created at 11/06/2010 10:26  by GGlasgow 
Last modified at 11/06/2010 10:26  by GGlasgow