A postprocessing visualization tool for Mili databases
From within the directory griz/Src exectute the command:
configure
If you need to use a version of Mili other than the default installation on LC run:
configure --with-mili=<path-to-mili>
These will generate a new build directory starting with GRIZ4, for example: GRIZ4-toss_3_x86_64_ib-RZGENIE
Once the build directory has been generated using configure, the code is compiled within this new directory using the gmake utility.
There are currently 4 standard builds that are commonly made:
| Build Type | Description |
|---|---|
| debug | Debug version of Griz with gui |
| opt | Optimized version of Griz with gui |
| batchdebug | Debug version of batch griz (no gui) |
| batchopt | Optimized version of batch griz (no gui) |
These are compiled by running the command:
gmake <build>
For example:
gmake debug; gmake opt; gmake batchdebug; gmake batchopt
A suite of tests exists within the directory griz/Src/test. To run the tests perform the following steps:
Test.py lives in Dyna3dx/CheckOut/scripts/Tests.py. griz_env lives there also.
To checkout locally run: cvs co -d scripts/CheckOut/scripts in the directory griz/Src/test
Tests are run using the script Test.py. The argument -e griz_env must
be added to run the griz tests
To find all the options just run: scripts/Test.py -h
The tests results were baselined using the batchopt build of Griz.
You should be using this version when running the tests otherwise some
of the tests will fail
To run the Griz Test Suite:
All Tests:
scripts/Test.py -e griz_env -c <path_to_code> -p1 -s all
Single Suite:
scripts/Test.py -e griz_env -c <path_to_code> -p1 -s <suite_name>
scripts/Test.py -e griz_env -c <path_to_code> -p1 -s derived
Single Test:
scripts/Test.py -e griz_env -c <path_to_code> -p1 -t <testname>
scripts/Test.py -e griz_env -c <path_to_code> -p1 -t bar71_image_press_rmin_th
To do deploy griz on the OCF perform the following steps
In the director griz/Src, edit configure.ac and change the following
- If we are changing the version, change appropriately
m4_define(GRIZ_VERSION_M4, V21_01)
m4_define(GRIZ_MAJOR_M4, 20)
m4_define(GRIZ_MINOR_M4, 1)
m4_define(GRIZ_BUG_M4, 1)
- Alway change the date (you can change the time if you want, but usually we do not)
m4_define(GRIZ_DATE_M4, mm/dd/yyyy)
m4_define(GRIZ_TIME_M4, 07:00:00)
Save file and run
autoconf -f
Build the opt and batchopt versions of griz
gmake clean; gmake opt; gmake batchopt;
give mdgadmin bin_opt/griz.linux-gnu_opt bin_batch_opt/griz.linux-gnu_opt_batch
xsu mdgadmin
If this is a new version then we need to create a new directory. Follow the steps below:
cd /collab/usr/apps/mdg/archive/grizdircp -p -r [Last Version Directory name (i.e V16_01)] [New version name]rm grizalphaln -sf [New version name] grizalphacd grizalpha/bincp griz.linux-gnu_opt griz.linux-gnu_opt-MM.DD.YYYYcp griz.linux-gnu_opt_batch griz.linux-gnu_opt_batch-MM.DD.YYYYtake -f <your username>chmod g+rx griz.linux-gnu_optchmod g+rx griz.linux-gnu_opt_batch- Most Important: logout as mdgadmin and run a test using the new installed alpha version:
griz -alpha -i <filename>
This will install griz without killing running jobs
cd /collab/usr/apps/mdg/archive/grizdir/[grizalpha|grizbeta|grizversion]/binmv griz.linux-gnu_opt_batch griz.linux-gnu_opt_batch-MM.DD.YYYYmv griz.linux-gnu_opt griz.linux-gnu_opt-MM.DD.YYYY(MM.DD.YYYY should be date of version being moved)take <your username>chmod g+rx griz.linux-gnu_optchmod g+rx griz.linux-gnu_opt_batch- Most Important: logout as mdgadmin and run a test using the new installed alpha version:
griz -alpha -i <filename>