From e00ff00dcd96108f97816f89a418debbbb2011f1 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 31 May 2023 11:18:10 +0100 Subject: [PATCH] applications/test/vectorTools: Deleted, redundant tests --- applications/test/vectorTools/Make/files | 3 - applications/test/vectorTools/Make/options | 1 - .../test/vectorTools/Test-vectorTools.C | 71 ------------------- 3 files changed, 75 deletions(-) delete mode 100644 applications/test/vectorTools/Make/files delete mode 100644 applications/test/vectorTools/Make/options delete mode 100644 applications/test/vectorTools/Test-vectorTools.C diff --git a/applications/test/vectorTools/Make/files b/applications/test/vectorTools/Make/files deleted file mode 100644 index 0b30b98f8f..0000000000 --- a/applications/test/vectorTools/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -Test-vectorTools.C - -EXE = $(FOAM_USER_APPBIN)/Test-vectorTools diff --git a/applications/test/vectorTools/Make/options b/applications/test/vectorTools/Make/options deleted file mode 100644 index 41306609f2..0000000000 --- a/applications/test/vectorTools/Make/options +++ /dev/null @@ -1 +0,0 @@ -EXE_INC = diff --git a/applications/test/vectorTools/Test-vectorTools.C b/applications/test/vectorTools/Test-vectorTools.C deleted file mode 100644 index 2d7a4aa2bc..0000000000 --- a/applications/test/vectorTools/Test-vectorTools.C +++ /dev/null @@ -1,71 +0,0 @@ -#include "vector.H" -#include "IOstreams.H" -#include "vectorTools.H" -#include "unitConversion.H" - -using namespace Foam; - - -void test(const vector& a, const vector& b, const scalar tolerance) -{ - Info<< "Vectors " << a << " and " << b - << " are (to tolerance of " << tolerance << "): "; - - if (vectorTools::areParallel(a, b, tolerance)) - Info<< " parallel "; - - if (vectorTools::areOrthogonal(a, b, tolerance)) - Info<< " orthogonal "; - - if (vectorTools::areAcute(a, b)) - Info<< " acute "; - - if (vectorTools::areObtuse(a, b)) - Info<< " obtuse "; - - Info<< ", angle = " << vectorTools::degAngleBetween(a, b); - - Info<< endl; -} - - -int main() -{ - vector a(1.0, 1.0, 1.0); - vector b(2.0, 2.0, 2.0); - - test(a, b, 0.0); - test(a, b, vSmall); - test(a, b, small); - test(a, b, 1e-3); - test(a, b, 1e-1); - - a = vector(1,0,0); - b = vector(0,2,0); - - test(a, b, 0.0); - test(a, b, vSmall); - test(a, b, small); - test(a, b, 1e-3); - test(a, b, 1e-1); - - a = vector(1,0,0); - b = vector(-1,0,0); - - test(a, b, 0.0); - test(a, b, vSmall); - test(a, b, small); - test(a, b, 1e-3); - test(a, b, 1e-1); - - a = vector(1,0,0); - b = vector(-1,2,0); - - test(a, b, 0.0); - test(a, b, vSmall); - test(a, b, small); - test(a, b, 1e-3); - test(a, b, 1e-1); - - return 0; -}