Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > How to read data from files and write data to files > How to read data from files and write data to files?  

FluidEarth Discussions: How to read data from files and write data to files?

Body

i've created the attached file (Engine.f90) from the code you posted and the fortran template from the workshop. worth noting that i've turned the hard-coded input and output file names into mandatory arguments to be read from the omi file. i would also do the same for imax and jmax, or have them read from a steering file.
 
hopefully this will get you started,
gordon

From: ZZhang
Posted: 08 December 2009 22:23
Subject: How to read data from files and write data to files?

I want to wrap my model using OpenWEB SDK. But I am in trouble at the beginning. The model needs to read data from files and calculate, then write the result to files. I tried to modify the TemplateFtn model, but I don’t know how to do.

The attachments are code (a simplified programme) and input data.  

Can someone tell me which files or variables need to modify and how to modify?

Thanks.

Attachments
Engine.F90    
Content Type: Message
Created at 10/12/2009 15:40  by GGlasgow 
Last modified at 10/12/2009 15:40  by GGlasgow