Packages
A configurable spherical geodesic grid data model designed for simulations GEOF Planet offers an ideal data model for simulations of 2½D spherical phenomena like oceanography and climate. It is ported from the JavaScript project g-e-o-f/peels.
Current section
Files
Jump to
Current section
Files
test/mesh_test.exs
defmodule GEOF.Planet.Geometry.MeshTest do
use ExUnit.Case
import GEOF.Planet.Geometry.Mesh
doctest GEOF.Planet.Geometry.Mesh
test "produces the accumulator" do
d = 3
n_polys = 10 * d * d + 2
n_faces = n_polys * 4 - 12
mesh = poly_per_field(d)
assert length(mesh[:index]) == n_faces * 3
end
end