From 63b6dc47e0065848cb0e08fd1f8081521689a42a Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Fri, 26 Nov 2021 11:28:16 +0100
Subject: [PATCH] COMP: mark function objects as removable

- ensures that unloading will not affect the rest of the table
---
 src/avalanche/functionObjects/autoAreaToVolumeMapping.C | 2 +-
 src/avalanche/functionObjects/gridfileWrite.C           | 2 +-
 src/avalanche/functionObjects/shapefileWrite.C          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/avalanche/functionObjects/autoAreaToVolumeMapping.C b/src/avalanche/functionObjects/autoAreaToVolumeMapping.C
index 016a4c9..6f397f7 100644
--- a/src/avalanche/functionObjects/autoAreaToVolumeMapping.C
+++ b/src/avalanche/functionObjects/autoAreaToVolumeMapping.C
@@ -43,7 +43,7 @@ namespace functionObjects
 {
     defineTypeNameAndDebug(autoAreaToVolumeMapping, 0);
 
-    addToRunTimeSelectionTable
+    addRemovableToRunTimeSelectionTable
     (
         functionObject,
         autoAreaToVolumeMapping,
diff --git a/src/avalanche/functionObjects/gridfileWrite.C b/src/avalanche/functionObjects/gridfileWrite.C
index 9e53a20..f3c6fa8 100644
--- a/src/avalanche/functionObjects/gridfileWrite.C
+++ b/src/avalanche/functionObjects/gridfileWrite.C
@@ -45,7 +45,7 @@ namespace functionObjects
 {
     defineTypeNameAndDebug(gridfileWrite, 0);
 
-    addToRunTimeSelectionTable
+    addRemovableToRunTimeSelectionTable
     (
         functionObject,
         gridfileWrite,
diff --git a/src/avalanche/functionObjects/shapefileWrite.C b/src/avalanche/functionObjects/shapefileWrite.C
index c736a50..1feff65 100644
--- a/src/avalanche/functionObjects/shapefileWrite.C
+++ b/src/avalanche/functionObjects/shapefileWrite.C
@@ -42,7 +42,7 @@ namespace functionObjects
 {
     defineTypeNameAndDebug(shapefileWrite, 0);
 
-    addToRunTimeSelectionTable
+    addRemovableToRunTimeSelectionTable
     (
         functionObject,
         shapefileWrite,
-- 
GitLab