[cig-commits] [commit] devel, master: added a test to check that color palette file GMTglobe.cpt exists (7f29f8a)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:17:04 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit 7f29f8ab3db0648fd19515a88ba3c0309f54209c
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Tue May 20 00:03:59 2014 +0200

    added a test to check that color palette file GMTglobe.cpt exists


>---------------------------------------------------------------

7f29f8ab3db0648fd19515a88ba3c0309f54209c
 topo_bathy/display_topography_of_SPECFEM3D_GLOBE_with_GMT.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/topo_bathy/display_topography_of_SPECFEM3D_GLOBE_with_GMT.sh b/topo_bathy/display_topography_of_SPECFEM3D_GLOBE_with_GMT.sh
index 0e725c3..00d51e6 100755
--- a/topo_bathy/display_topography_of_SPECFEM3D_GLOBE_with_GMT.sh
+++ b/topo_bathy/display_topography_of_SPECFEM3D_GLOBE_with_GMT.sh
@@ -6,6 +6,11 @@
 # All following but the last need both "-K" and "-O"
 # The last one needs _only_ "-O"
 
+if [[ ! -f GMTglobe.cpt ]]; then
+    echo "Color palette file GMTglobe.cpt not found!"
+    exit 1
+fi
+
 ps=topography_of_SPECFEM_mesh.ps
 
 central_meridian=0



More information about the CIG-COMMITS mailing list