This is an old revision of the document!
GridDataReader.f90
(under elmerice/netcdf2
-tree)GridDataReader
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 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.
None, so far.
Solver 1 Equation = Reader Procedure = "./GridDataReader" "GridDataReader" !---- NOTE: File is case sensitive, String is not! Filename = File "../greenland.nc" Time Dim Name = String "time" X Dim Name = String "X" Y Dim Name = String "Y" Time Var Name = String "time" X Var Name = String "x" Y Var Name = String "y" !--- Interpolation variables tolerances Epsilon X = Real 1.0e-2 Epsilon Y = Real 1.0e-2 Epsilon Time = Real 0.01 Interpolation Bias = Real 0.0 Interpolation Multiplier = Real 1.0 Is Time Counter = Logical True Variable 1 = annualtemp Variable 2 = julytemp Variable 3 = preciptation Variable 4 = ablation Enable Scaling = Logical True ! Scales the Elmer grid to match the NetCDF grid - dangerous End