diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-11-14 18:35:25 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-11-14 18:35:25 +0100 |
commit | 46651234ad7e40fde7b06aae9395f98c55a4c6e1 (patch) | |
tree | f2d33cf093f862d229805ef6da7bc91aec592496 /Examples | |
parent | cc222ff7089b7fe03593edadba655e58b2e0b3f2 (diff) |
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
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/EM-xTensor.m | 10 |
1 files changed, 9 insertions, 1 deletions
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; |