jcohenpersonal / opencurrent

Automatically exported from code.google.com/p/opencurrent
2 stars 0 forks source link

How to run your example? #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I can't run your example source code.
When I run incompress(in apps/incompress), it needs two grid file.

[ginide@GPUWorks apps]$ ./incompress 
usage: incompress <in.nc> <out.nc> [<tolerance>]

My machine has netCDF 3.6.3, but I can't make that files. 
I made some nc files, but that didn't work.
Please help me.

Original issue reported on code.google.com by gin...@gmail.com on 10 Mar 2011 at 5:49

GoogleCodeExporter commented 9 years ago
Netcdf is a generic container format, so you can use any netcdf file with any 
application.  The file io routines in opencurrent assume that the netcdf file 
is stored with a certain schema, which is what is generated when you write out 
a vector field for netcdf.

therefore, you will need to create the vector field in opencurrent, then write 
it out using the NetCDF file writing routines.  There is some example code in 
the wiki here:
http://code.google.com/p/opencurrent/wiki/OpenCurrent

-Jon

Original comment by jcohen.p...@gmail.com on 11 Mar 2011 at 6:32