Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
solvers:griddatareader [2013/04/02 09:27]
tzwinger [Known Bugs]
solvers:griddatareader [2020/09/17 07:49]
fgillet [SIF contents]
Line 11: Line 11:
  
 ==== Compilation ==== ==== Compilation ====
 +**Update 37f46d0** under elmerice branch\\
 +Now you can automatically build, test & compile the solver with cmake. \\
 +
 +**Update e375a11** under elmerice branch:\\
 +cmake variable //WITH_GridDataReader// no more required. GridDatareader it compiled if netcdf is found.
 +
 +
 +KeyWorkds:\\
 +<code>
 +cmake
 +   -DNetCDF_INCLUDE_DIR=PATH_TO_INCLUDE \
 +   -DNetCDF_LIBRARY=PATH_TO_libnetcdf.so \
 +   -DNetCDFF_LIBRARY=PATH_TO_libnetcdff.so \
 +</code>
 +__Old Version__\\
 This solver is not part of the standard Elmer/Ice installation and has to be compiled manually. There is an example compilation call in the directory. Naturally, the system needs to have a compatible NetCDF library installed. In particular, the Fortran compiler with which the NetCDF library has been compiled has to be the same Elmer and Elmer/Ice has been compiled with (module compatibility) This solver is not part of the standard Elmer/Ice installation and has to be compiled manually. There is an example compilation call in the directory. Naturally, the system needs to have a compatible NetCDF library installed. In particular, the Fortran compiler with which the NetCDF library has been compiled has to be the same Elmer and Elmer/Ice has been compiled with (module compatibility)
 ==== General Information ==== ==== General Information ====
Line 22: Line 37:
 Solver 1 Solver 1
   Equation = Reader   Equation = Reader
-  Procedure = "./GridDataReader" "GridDataReader"+  Procedure = "GridDataReader" "GridDataReader"
  
   !---- NOTE: File is case sensitive, String is not!   !---- NOTE: File is case sensitive, String is not!
   Filename = File "../greenland.nc"    Filename = File "../greenland.nc" 
 +  
 +  !----- Load the whole netcdf array instead of inquiring only the values required 
 +  !  for the interpolation at the current mesh node
 +  Read full array = Logical [default: false]
  
   Time Dim Name = String "time"   Time Dim Name = String "time"
Line 36: Line 55:
  
   !--- Interpolation variables tolerances   !--- Interpolation variables tolerances
-  Epsilon X = Real 1.0e-2  +  X Epsilon = Real 1.0e-2  
-  Epsilon Y = Real 1.0e-2  +  Y Epsilon = Real 1.0e-2  
-  Epsilon Time = Real 0.01+  Time Epsilon = Real 0.01
  
   Interpolation Bias = Real 0.0    Interpolation Bias = Real 0.0 
Line 53: Line 72:
 End End
 </code> </code>
 +
 +==== Test ====
 +Located under ''[ELMER_TRUNK]/elmerice/Tests/GridDataReader''  \\
 +You can test with
 +<code>
 +ctest -L GridDataReader
 +or 
 +ctest -L netcdf
 +</code>
 +
 +==== Example ====
 +The directory ''[ELMER_TRUNK]/elmerice/netcdf2'' contains the example above, that should work with the NetCDF file provided by the [[http://websrv.cs.umt.edu/isis/index.php/Present_Day_Greenland#Data_Download|searise]] group.
solvers/griddatareader.txt · Last modified: 2020/09/17 07:54 by fgillet
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0