This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
solvers:griddatareader [2013/04/02 10:28] tzwinger [SIF contents] |
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 // | ||
+ | |||
+ | |||
+ | KeyWorkds: | ||
+ | < | ||
+ | cmake | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | __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 " | Filename = File " | ||
+ | | ||
+ | !----- 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 Dim Name = String " | ||
Line 36: | Line 57: | ||
!--- Interpolation variables tolerances | !--- Interpolation variables tolerances | ||
- | | + | X Epsilon |
- | | + | Y Epsilon |
- | | + | Time Epsilon |
Interpolation Bias = Real 0.0 | Interpolation Bias = Real 0.0 | ||
Line 52: | Line 73: | ||
Enable Scaling = Logical True ! Scales the Elmer grid to match the NetCDF grid - dangerous | Enable Scaling = Logical True ! Scales the Elmer grid to match the NetCDF grid - dangerous | ||
End | End | ||
+ | </ | ||
+ | |||
+ | ==== Test ==== | ||
+ | Located under '' | ||
+ | You can test with | ||
+ | < | ||
+ | ctest -L GridDataReader | ||
+ | or | ||
+ | ctest -L netcdf | ||
</ | </ | ||
==== Example ==== | ==== Example ==== | ||
- | The directory contains the example above, that should work with the NetCDF file provided by the [[searise]http:// | + | The directory |