From 46651234ad7e40fde7b06aae9395f98c55a4c6e1 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Wed, 14 Nov 2012 18:35:25 +0100 Subject: EM-xTensor.m: Improve code which loads the Metrics package * Add the EinsteinToolkit relative location in EinsteinExact (the submodule must be checked out) * Give an error and abort if the metrics database cannot be loaded --- Examples/EM-xTensor.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Examples/EM-xTensor.m') diff --git a/Examples/EM-xTensor.m b/Examples/EM-xTensor.m index c1b480d..224e789 100644 --- a/Examples/EM-xTensor.m +++ b/Examples/EM-xTensor.m @@ -21,7 +21,15 @@ $KrancTensorPackage="xTensorKranc`"; Get["KrancTensor`"]; -Get["Metrics`LoadMetric`"]; + +PrependTo[$Path, "../../EinsteinExact/m"]; + +Check[Get["Metrics`LoadMetric`"], + Print["Cannot load Metrics package"]; Quit[1], + Get::noopen]; + +Print["Using Metrics database at ", FindFile["Metrics`LoadMetric`"]]; + $DefInfoQ=False; $CVVerbose=False; $PrePrint=ScreenDollarIndices; -- cgit v1.2.3