[cig-commits] [commit] devel: improved the Gnuplot script (81540ba)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Thu Dec 4 14:23:56 PST 2014
Repository : https://github.com/geodynamics/specfem1d
On branch : devel
Link : https://github.com/geodynamics/specfem1d/compare/5256719518cf830140d763010ff1d3de635fab73...9ef3122c3d79b1be0ae3e3bebea775768ff33b12
>---------------------------------------------------------------
commit 81540ba3a40f45604a1d4e38d26be1e08b5ecfb0
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date: Thu Dec 4 23:22:38 2014 +0100
improved the Gnuplot script
>---------------------------------------------------------------
81540ba3a40f45604a1d4e38d26be1e08b5ecfb0
Fortran_version/Makefile | 6 +++---
Fortran_version/plot_script_using_gnuplot.csh | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Fortran_version/Makefile b/Fortran_version/Makefile
index a05183e..4122518 100644
--- a/Fortran_version/Makefile
+++ b/Fortran_version/Makefile
@@ -10,7 +10,7 @@
#************ COMPILER OPTIONS **************#
-DEBUG=no # Debug mode or not
+DEBUG=no # Debug mode or not
EXEC=xspecfem1d # Executable name
# Intel
@@ -77,7 +77,7 @@ $(OBJ_DIR)/source_time_function.o: $(OBJ_DIR)/modules.o $(SRC_DIR)/source_time_f
$(OBJ_DIR)/specfem1d.o: $(OBJ_DIR)/modules.o $(SRC_DIR)/specfem1d.f90
$(F90) $(MOD_OPTION)$(OBJ_DIR) -I$(OBJ_DIR) -c $(SRC_DIR)/specfem1d.f90 -o $(OBJ_DIR)/specfem1d.o $(FLAGS)
-# .PHONY is usefull for example if it exists a file named "clean" is the current directory -> "make clean" would not work
+# .PHONY is useful for example a file named "clean" exists in the current directory -> "make clean" would not work
.PHONY: dirobj bin
# Create the directory $(OBJ_DIR) if needed :
@@ -102,7 +102,7 @@ endif
clean:
rm -rf $(OBJ_DIR) $(SRC_DIR)/*~ *~ .plot_all_snapshots.gnu utils/*~ $(BIN_DIR)/*
-# Clean + remove executable
+# Clean and remove executable
purge: clean
rm -rf $(BIN_DIR) OUTPUT_FILES
diff --git a/Fortran_version/plot_script_using_gnuplot.csh b/Fortran_version/plot_script_using_gnuplot.csh
index 7b75bcc..4b8a1d8 100755
--- a/Fortran_version/plot_script_using_gnuplot.csh
+++ b/Fortran_version/plot_script_using_gnuplot.csh
@@ -1,5 +1,7 @@
#!/bin/csh
+rm -f _________plot_all_snapshots.gnu
+
#echo "set term eps" >> _________plot_all_snapshots.gnu
echo set xrange \[0:50000\] >> _________plot_all_snapshots.gnu
@@ -13,5 +15,5 @@ foreach file ( ./OUTPUT_FILES/snapshot* )
end
gnuplot _________plot_all_snapshots.gnu
-rm _________plot_all_snapshots.gnu
+rm -f _________plot_all_snapshots.gnu
More information about the CIG-COMMITS
mailing list