feat: initial release
Release / gates (push) Successful in 4m38s
Test / test (push) Successful in 5m16s
Release / release (push) Successful in 35s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-03 10:00:00 +02:00
commit af4ee19703
617 changed files with 191195 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: MIT
package integrate
import "testing"
// TestSolvePoissonFEM2DNilMeshRefused pins the nil-mesh refusal: the
// three-dimensional solve reports a nil mesh as an error, so the
// two-dimensional one answers the same way instead of dereferencing
// it and panicking.
func TestSolvePoissonFEM2DNilMeshRefused(t *testing.T) {
_, err := SolvePoissonFEM2D(nil, nil, FEMPoissonOptions{
Kappa: 1,
DirichletNodes: []int{0},
DirichletValues: []float64{0},
})
if err == nil {
t.Fatal("SolvePoissonFEM2D: expected an error for a nil mesh")
}
}