Download and Setup - grtensor/grtensor GitHub Wiki

1. Download

Non-GIT users:

  1. Click the "Code" tab in the GitHub toolbar at the top of this page
  2. Click the green "Clone or Download" button on the right-hand side of the "Code" tab page
  3. Select "Download ZIP"

Git Users

Clone the repository in a directory on your computer
git clone https://github.com/grtensor/grtensor.git

2. Setup

GRTensorIII is downloaded as a package in the lib/ directory of this github project. This lib directory needs to be included in your Maple library path. This can be done one of two ways:

1. In a Maple session change the path to the directory on your system:

(each worksheet is considered a separate session, so if this method is used the path must be set for each new worksheet)

For example, on my Mac the Maple library is found in a directory I created: "maple/grtensor/lib" so the assignment would be:

libname := libname,"/User/peter/maple/grtensor/lib";

On my PC the path I use use is different and the assignment is:

libname := libname,"D:/grtensor/lib";

2. Place the path, to your directory, in the Maple init file in the home directory on your computer.

See Maple Init File for more information.

3. Load grtensor

GRIII can then be loaded via:

with(grtensor);

And the output will be:

                  `  "GRTensor III"`

"Copyright 2016, Peter Musgrave, Denis Pollney, Kayll Lake"

                    `"grtensor.org"`

[autoalias, gralter, grcalc, grcalcalter, grcomponent, grdebug,

grdef, grdisplay, grinit, grload, grloaddef, grmap, groptions,

grsavedef, grtestinput, makeg, nptetrad, qload]

GRTensor III is now ready to use. For details on how to proceed see Getting Started.

If the output to the with command is: Error, invalid input: with expects its 1st argument, pname, to be of type {module, package}, but received grtensor

then the library directory is not in the library path correctly and you need to fix the libname command above.