Warning: Undefined array key 1 in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/auth.php on line 431

Warning: Cannot modify header information - headers already sent by (output started at /home/np29546/public_html/elmerice/wiki/inc/auth.php:78) in /home/np29546/public_html/elmerice/wiki/inc/actions.php on line 38
solvers:griddatareader [Elmer/Ice Wiki]

Warning: Undefined array key -1 in /home/np29546/public_html/elmerice/wiki/inc/html.php on line 1458

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
solvers:griddatareader [2016/11/10 16:30]
ltavard [Example]
solvers:griddatareader [2020/09/17 07:54] (current)
fgillet [General Information]
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 ====
 This auxiliary solver enables to read in variables from a NetCDF file and interpolates the values to the mesh as variables of the same name. The interpolation is done by using the Finite Element test functions. This auxiliary solver enables to read in variables from a NetCDF file and interpolates the values to the mesh as variables of the same name. The interpolation is done by using the Finite Element test functions.
  
 +By default the code will loop over the mesh nodes and read only the values required for the interpolation at the given node. This might involve a lot of I/O and become a bottle neck. Loading the whole netcdf at the begining requires to allocate more space in the memory but might be more efficient if possible. This possibility is given by setting:
 +//Read full array = Logical True// 
 ==== Known Bugs ==== ==== Known Bugs ====
 None, so far. None, so far.
Line 26: Line 43:
   !---- 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 57:
  
   !--- 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 55: Line 76:
  
 ==== Test ==== ==== Test ====
-Located under ''[ELMER_TRUNK]/elmerice/Tests/GridDataReader'' +Located under ''[ELMER_TRUNK]/elmerice/Tests/GridDataReader''  \\ 
 +You can test with 
 +<code> 
 +ctest -L GridDataReader 
 +or  
 +ctest -L netcdf 
 +</code>
  
 ==== Example ==== ==== 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. 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.1478795413.txt.gz · Last modified: 2016/11/10 16:30 by ltavard
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