diff --git a/.gitignore b/.gitignore index 322d73b92..4f60c04f8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,49 +11,49 @@ setup/constants.h setup/precision.h # Scotch files -src/meshfem2D/scotch_5.1.12b/src/Makefile.inc -src/meshfem2D/scotch_5.1.12b/bin/ -src/meshfem2D/scotch_5.1.12b/include/ -src/meshfem2D/scotch_5.1.12b/lib/ -src/meshfem2D/scotch_5.1.12b/src/libscotch/*.o -src/meshfem2D/scotch_5.1.12b/src/libscotch/*.a -src/meshfem2D/scotch_5.1.12b/src/libscotch/dummysizes -src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ll.c -src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ly.h -src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_yy.c -src/meshfem2D/scotch_5.1.12b/src/libscotch/scotch.h -src/meshfem2D/scotch_5.1.12b/src/libscotch/scotchf.h -src/meshfem2D/scotch_5.1.12b/src/libscotch/y.output -src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/*.o -src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/libscotchmetis.a -src/meshfem2D/scotch_5.1.12b/src/scotch/acpl -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_ccc -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_fft2 -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_grf -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_hy -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_m2 -src/meshfem2D/scotch_5.1.12b/src/scotch/amk_p2 -src/meshfem2D/scotch_5.1.12b/src/scotch/atst -src/meshfem2D/scotch_5.1.12b/src/scotch/gbase -src/meshfem2D/scotch_5.1.12b/src/scotch/gcv -src/meshfem2D/scotch_5.1.12b/src/scotch/gmap -src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_hy -src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m2 -src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m3 -src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_msh -src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_ub2 -src/meshfem2D/scotch_5.1.12b/src/scotch/gmtst -src/meshfem2D/scotch_5.1.12b/src/scotch/gord -src/meshfem2D/scotch_5.1.12b/src/scotch/gotst -src/meshfem2D/scotch_5.1.12b/src/scotch/gout -src/meshfem2D/scotch_5.1.12b/src/scotch/gpart -src/meshfem2D/scotch_5.1.12b/src/scotch/gscat -src/meshfem2D/scotch_5.1.12b/src/scotch/gtst -src/meshfem2D/scotch_5.1.12b/src/scotch/mcv -src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m2 -src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m3 -src/meshfem2D/scotch_5.1.12b/src/scotch/mord -src/meshfem2D/scotch_5.1.12b/src/scotch/mtst +external_libs/scotch_5.1.12b/src/Makefile.inc +external_libs/scotch_5.1.12b/bin/ +external_libs/scotch_5.1.12b/include/ +external_libs/scotch_5.1.12b/lib/ +external_libs/scotch_5.1.12b/src/libscotch/*.o +external_libs/scotch_5.1.12b/src/libscotch/*.a +external_libs/scotch_5.1.12b/src/libscotch/dummysizes +external_libs/scotch_5.1.12b/src/libscotch/parser_ll.c +external_libs/scotch_5.1.12b/src/libscotch/parser_ly.h +external_libs/scotch_5.1.12b/src/libscotch/parser_yy.c +external_libs/scotch_5.1.12b/src/libscotch/scotch.h +external_libs/scotch_5.1.12b/src/libscotch/scotchf.h +external_libs/scotch_5.1.12b/src/libscotch/y.output +external_libs/scotch_5.1.12b/src/libscotchmetis/*.o +external_libs/scotch_5.1.12b/src/libscotchmetis/libscotchmetis.a +external_libs/scotch_5.1.12b/src/scotch/acpl +external_libs/scotch_5.1.12b/src/scotch/amk_ccc +external_libs/scotch_5.1.12b/src/scotch/amk_fft2 +external_libs/scotch_5.1.12b/src/scotch/amk_grf +external_libs/scotch_5.1.12b/src/scotch/amk_hy +external_libs/scotch_5.1.12b/src/scotch/amk_m2 +external_libs/scotch_5.1.12b/src/scotch/amk_p2 +external_libs/scotch_5.1.12b/src/scotch/atst +external_libs/scotch_5.1.12b/src/scotch/gbase +external_libs/scotch_5.1.12b/src/scotch/gcv +external_libs/scotch_5.1.12b/src/scotch/gmap +external_libs/scotch_5.1.12b/src/scotch/gmk_hy +external_libs/scotch_5.1.12b/src/scotch/gmk_m2 +external_libs/scotch_5.1.12b/src/scotch/gmk_m3 +external_libs/scotch_5.1.12b/src/scotch/gmk_msh +external_libs/scotch_5.1.12b/src/scotch/gmk_ub2 +external_libs/scotch_5.1.12b/src/scotch/gmtst +external_libs/scotch_5.1.12b/src/scotch/gord +external_libs/scotch_5.1.12b/src/scotch/gotst +external_libs/scotch_5.1.12b/src/scotch/gout +external_libs/scotch_5.1.12b/src/scotch/gpart +external_libs/scotch_5.1.12b/src/scotch/gscat +external_libs/scotch_5.1.12b/src/scotch/gtst +external_libs/scotch_5.1.12b/src/scotch/mcv +external_libs/scotch_5.1.12b/src/scotch/mmk_m2 +external_libs/scotch_5.1.12b/src/scotch/mmk_m3 +external_libs/scotch_5.1.12b/src/scotch/mord +external_libs/scotch_5.1.12b/src/scotch/mtst # Build time bin/* diff --git a/configure b/configure index a507ad4a5..d790f1328 100755 --- a/configure +++ b/configure @@ -6588,7 +6588,7 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu # uses bundled scotch: current version pointed to by symbolic link scotch/ USE_BUNDLED_SCOTCH=1 - SCOTCH_DIR="$srcdir/src/meshfem2D/scotch" + SCOTCH_DIR="$srcdir/external_libs/scotch" SCOTCH_LIBDIR="${SCOTCH_DIR}/lib" SCOTCH_INCLUDEDIR="${SCOTCH_DIR}/include" else @@ -6646,11 +6646,13 @@ if test x"$MPIFC" = x; then : MPIFC=mpif90 fi + if test x"$MPICC" = x; then : MPICC=mpicc fi + if test x"$LOCAL_PATH_IS_ALSO_GLOBAL" = x; then : LOCAL_PATH_IS_ALSO_GLOBAL=true @@ -6658,9 +6660,7 @@ if test x"$LOCAL_PATH_IS_ALSO_GLOBAL" = x; then : fi # Checks for typedefs, structures, and compiler characteristics. - # check fortran modules flag - $as_echo "## ----------------- ## ## module extensions ## ## ----------------- ##" @@ -7620,16 +7620,80 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu fi -############################################################ +## +## Git version info +## +$as_echo "## ---------------- ## +## git version info ## +## ---------------- ##" -$as_echo "## ----------------------------------- ## -## setting up default simulation setup ## -## ----------------------------------- ##" +pushd $srcdir > /dev/null +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .git/config" >&5 +$as_echo_n "checking for .git/config... " >&6; } +if ${ac_cv_file__git_config+:} false; then : + $as_echo_n "(cached) " >&6 +else + test "$cross_compiling" = yes && + as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 +if test -r ".git/config"; then + ac_cv_file__git_config=yes +else + ac_cv_file__git_config=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__git_config" >&5 +$as_echo "$ac_cv_file__git_config" >&6; } +if test "x$ac_cv_file__git_config" = xyes; then : -# Output results. -ac_config_files="$ac_config_files Makefile setup/constants.h setup/constants_tomography.h setup/precision.h setup/config.fh" +SPECFEM2D_RELEASE_VERSION=0 +eval SPECFEM2D_GIT_REVISION=`git describe` +eval SPECFEM2D_GIT_HASH=`git log -1 --pretty=format:%H` +eval SPECFEM2D_GIT_DATE=\"`git log -1 --pretty=format:%ci`\" +eval SPECFEM2D_GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` + +else + +SPECFEM2D_RELEASE_VERSION=1 +SPECFEM2D_GIT_REVISION="unknown" +SPECFEM2D_GIT_HASH="unknown" +SPECFEM2D_GIT_DATE="unknown" +SPECFEM2D_GIT_BRANCH="unknown" + +fi + +popd > /dev/null + +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_RELEASE_VERSION $SPECFEM2D_RELEASE_VERSION +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_GIT_REVISION "$SPECFEM2D_GIT_REVISION" +_ACEOF +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_GIT_HASH "$SPECFEM2D_GIT_HASH" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_GIT_DATE "$SPECFEM2D_GIT_DATE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_GIT_BRANCH "$SPECFEM2D_GIT_BRANCH" +_ACEOF + + + +cat >>confdefs.h <<_ACEOF +#define SPECFEM2D_VERSION "$PACKAGE_VERSION" +_ACEOF + +#AC_DEFINE_UNQUOTED([SPECFEM2D_DOI], ["10.5281/zenodo.xxxxx"], [Define SPECFEM2D doi]) if test -d $srcdir/.git; then : GIT_VERSION_DEPS="$srcdir/.git/logs/HEAD" @@ -7646,6 +7710,17 @@ $as_echo "$as_me: not a git repository" >&6;} fi +############################################################ + +$as_echo "## ----------------------------------- ## +## setting up default simulation setup ## +## ----------------------------------- ##" + +# Output results. +ac_config_files="$ac_config_files Makefile setup/constants.h setup/constants_tomography.h setup/precision.h setup/config.fh" + + +# Scotch makefile if test "$USE_BUNDLED_SCOTCH" = 1; then ac_config_files="$ac_config_files ${SCOTCH_DIR}/src/Makefile.inc" @@ -8403,12 +8478,12 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "setup/config.h") CONFIG_HEADERS="$CONFIG_HEADERS setup/config.h" ;; + "setup/version.fh") CONFIG_FILES="$CONFIG_FILES setup/version.fh" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "setup/constants.h") CONFIG_FILES="$CONFIG_FILES setup/constants.h" ;; "setup/constants_tomography.h") CONFIG_FILES="$CONFIG_FILES setup/constants_tomography.h" ;; "setup/precision.h") CONFIG_FILES="$CONFIG_FILES setup/precision.h" ;; "setup/config.fh") CONFIG_FILES="$CONFIG_FILES setup/config.fh" ;; - "setup/version.fh") CONFIG_FILES="$CONFIG_FILES setup/version.fh" ;; "${SCOTCH_DIR}/src/Makefile.inc") CONFIG_FILES="$CONFIG_FILES ${SCOTCH_DIR}/src/Makefile.inc" ;; "DATA/Par_file") CONFIG_FILES="$CONFIG_FILES DATA/Par_file:DATA/Par_file" ;; "DATA/SOURCE") CONFIG_FILES="$CONFIG_FILES DATA/SOURCE:DATA/SOURCE" ;; diff --git a/configure.ac b/configure.ac index 3623a92c7..0cd048477 100644 --- a/configure.ac +++ b/configure.ac @@ -240,7 +240,7 @@ else # uses bundled scotch: current version pointed to by symbolic link scotch/ USE_BUNDLED_SCOTCH=1 - SCOTCH_DIR="$srcdir/src/meshfem2D/scotch" + SCOTCH_DIR="$srcdir/external_libs/scotch" SCOTCH_LIBDIR="${SCOTCH_DIR}/lib" SCOTCH_INCLUDEDIR="${SCOTCH_DIR}/include" else @@ -283,17 +283,17 @@ AC_ARG_VAR(LOCAL_PATH_IS_ALSO_GLOBAL, [files on a local path on each node are al AS_IF([test x"$MPIFC" = x],[ MPIFC=mpif90 ]) + AS_IF([test x"$MPICC" = x],[ MPICC=mpicc ]) + AS_IF([test x"$LOCAL_PATH_IS_ALSO_GLOBAL" = x],[ LOCAL_PATH_IS_ALSO_GLOBAL=true ]) # Checks for typedefs, structures, and compiler characteristics. - # check fortran modules flag - AS_BOX([module extensions]) AC_FC_MODULE_EXTENSION @@ -329,6 +329,23 @@ AS_IF([test x"$want_cuda" != xno], [ CIT_CUDA_CONFIG ]) +## +## Git version info +## +AS_BOX([git version info]) +CIG_PKG_GIT(SPECFEM2D) +AC_DEFINE_UNQUOTED([SPECFEM2D_VERSION], ["$PACKAGE_VERSION"], [Define SPECFEM2D version]) +#AC_DEFINE_UNQUOTED([SPECFEM2D_DOI], ["10.5281/zenodo.xxxxx"], [Define SPECFEM2D doi]) +AS_IF([test -d $srcdir/.git], [ + GIT_VERSION_DEPS="$srcdir/.git/logs/HEAD" + AC_MSG_NOTICE([building from git repository]) + AC_SUBST(GIT_VERSION_DEPS) +], [ + dnl Only substitute if not in a git repository. + AC_MSG_NOTICE([not a git repository]) + AC_CONFIG_FILES([setup/version.fh]) +]) + ############################################################ AS_BOX([setting up default simulation setup]) @@ -342,16 +359,7 @@ AC_CONFIG_FILES([ setup/config.fh ]) -AS_IF([test -d $srcdir/.git], [ - GIT_VERSION_DEPS="$srcdir/.git/logs/HEAD" - AC_MSG_NOTICE([building from git repository]) - AC_SUBST(GIT_VERSION_DEPS) -], [ - dnl Only substitute if not in a git repository. - AC_MSG_NOTICE([not a git repository]) - AC_CONFIG_FILES([setup/version.fh]) -]) - +# Scotch makefile if test "$USE_BUNDLED_SCOTCH" = 1; then AC_CONFIG_FILES([ ${SCOTCH_DIR}/src/Makefile.inc diff --git a/doc/call_trees_of_the_source_code/Doxyfile_complete_call_tree b/doc/call_trees_of_the_source_code/Doxyfile_complete_call_tree index bcc86aa68..0e9d9dd9d 100644 --- a/doc/call_trees_of_the_source_code/Doxyfile_complete_call_tree +++ b/doc/call_trees_of_the_source_code/Doxyfile_complete_call_tree @@ -686,7 +686,7 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = "../../src/meshfem2D/scotch" "../../src/meshfem2D/scotch_5.1.12b" +EXCLUDE = "../../external_libs/scotch" "../../external_libs/scotch_5.1.12b" # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded diff --git a/doc/call_trees_of_the_source_code/Doxyfile_truncated_call_tree b/doc/call_trees_of_the_source_code/Doxyfile_truncated_call_tree index ed4c8fec4..67106a796 100644 --- a/doc/call_trees_of_the_source_code/Doxyfile_truncated_call_tree +++ b/doc/call_trees_of_the_source_code/Doxyfile_truncated_call_tree @@ -686,7 +686,7 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = "../../src/meshfem2D/scotch" "../../src/meshfem2D/scotch_5.1.12b" +EXCLUDE = "../../external_libs/scotch" "../../external_libs/scotch_5.1.12b" # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded diff --git a/src/specfem2D/libjpeg/jaricom.c b/external_libs/libjpeg/jaricom.c similarity index 100% rename from src/specfem2D/libjpeg/jaricom.c rename to external_libs/libjpeg/jaricom.c diff --git a/src/specfem2D/libjpeg/jcapimin.c b/external_libs/libjpeg/jcapimin.c similarity index 100% rename from src/specfem2D/libjpeg/jcapimin.c rename to external_libs/libjpeg/jcapimin.c diff --git a/src/specfem2D/libjpeg/jcapistd.c b/external_libs/libjpeg/jcapistd.c similarity index 100% rename from src/specfem2D/libjpeg/jcapistd.c rename to external_libs/libjpeg/jcapistd.c diff --git a/src/specfem2D/libjpeg/jcarith.c b/external_libs/libjpeg/jcarith.c similarity index 100% rename from src/specfem2D/libjpeg/jcarith.c rename to external_libs/libjpeg/jcarith.c diff --git a/src/specfem2D/libjpeg/jccoefct.c b/external_libs/libjpeg/jccoefct.c similarity index 100% rename from src/specfem2D/libjpeg/jccoefct.c rename to external_libs/libjpeg/jccoefct.c diff --git a/src/specfem2D/libjpeg/jccolor.c b/external_libs/libjpeg/jccolor.c similarity index 100% rename from src/specfem2D/libjpeg/jccolor.c rename to external_libs/libjpeg/jccolor.c diff --git a/src/specfem2D/libjpeg/jcdctmgr.c b/external_libs/libjpeg/jcdctmgr.c similarity index 100% rename from src/specfem2D/libjpeg/jcdctmgr.c rename to external_libs/libjpeg/jcdctmgr.c diff --git a/src/specfem2D/libjpeg/jchuff.c b/external_libs/libjpeg/jchuff.c similarity index 100% rename from src/specfem2D/libjpeg/jchuff.c rename to external_libs/libjpeg/jchuff.c diff --git a/src/specfem2D/libjpeg/jcinit.c b/external_libs/libjpeg/jcinit.c similarity index 100% rename from src/specfem2D/libjpeg/jcinit.c rename to external_libs/libjpeg/jcinit.c diff --git a/src/specfem2D/libjpeg/jcmainct.c b/external_libs/libjpeg/jcmainct.c similarity index 100% rename from src/specfem2D/libjpeg/jcmainct.c rename to external_libs/libjpeg/jcmainct.c diff --git a/src/specfem2D/libjpeg/jcmarker.c b/external_libs/libjpeg/jcmarker.c similarity index 100% rename from src/specfem2D/libjpeg/jcmarker.c rename to external_libs/libjpeg/jcmarker.c diff --git a/src/specfem2D/libjpeg/jcmaster.c b/external_libs/libjpeg/jcmaster.c similarity index 100% rename from src/specfem2D/libjpeg/jcmaster.c rename to external_libs/libjpeg/jcmaster.c diff --git a/src/specfem2D/libjpeg/jcomapi.c b/external_libs/libjpeg/jcomapi.c similarity index 100% rename from src/specfem2D/libjpeg/jcomapi.c rename to external_libs/libjpeg/jcomapi.c diff --git a/src/specfem2D/libjpeg/jconfig.h b/external_libs/libjpeg/jconfig.h similarity index 100% rename from src/specfem2D/libjpeg/jconfig.h rename to external_libs/libjpeg/jconfig.h diff --git a/src/specfem2D/libjpeg/jcparam.c b/external_libs/libjpeg/jcparam.c similarity index 100% rename from src/specfem2D/libjpeg/jcparam.c rename to external_libs/libjpeg/jcparam.c diff --git a/src/specfem2D/libjpeg/jcprepct.c b/external_libs/libjpeg/jcprepct.c similarity index 100% rename from src/specfem2D/libjpeg/jcprepct.c rename to external_libs/libjpeg/jcprepct.c diff --git a/src/specfem2D/libjpeg/jcsample.c b/external_libs/libjpeg/jcsample.c similarity index 100% rename from src/specfem2D/libjpeg/jcsample.c rename to external_libs/libjpeg/jcsample.c diff --git a/src/specfem2D/libjpeg/jctrans.c b/external_libs/libjpeg/jctrans.c similarity index 100% rename from src/specfem2D/libjpeg/jctrans.c rename to external_libs/libjpeg/jctrans.c diff --git a/src/specfem2D/libjpeg/jdapimin.c b/external_libs/libjpeg/jdapimin.c similarity index 100% rename from src/specfem2D/libjpeg/jdapimin.c rename to external_libs/libjpeg/jdapimin.c diff --git a/src/specfem2D/libjpeg/jdapistd.c b/external_libs/libjpeg/jdapistd.c similarity index 100% rename from src/specfem2D/libjpeg/jdapistd.c rename to external_libs/libjpeg/jdapistd.c diff --git a/src/specfem2D/libjpeg/jdarith.c b/external_libs/libjpeg/jdarith.c similarity index 100% rename from src/specfem2D/libjpeg/jdarith.c rename to external_libs/libjpeg/jdarith.c diff --git a/src/specfem2D/libjpeg/jdatadst.c b/external_libs/libjpeg/jdatadst.c similarity index 100% rename from src/specfem2D/libjpeg/jdatadst.c rename to external_libs/libjpeg/jdatadst.c diff --git a/src/specfem2D/libjpeg/jdatasrc.c b/external_libs/libjpeg/jdatasrc.c similarity index 100% rename from src/specfem2D/libjpeg/jdatasrc.c rename to external_libs/libjpeg/jdatasrc.c diff --git a/src/specfem2D/libjpeg/jdcoefct.c b/external_libs/libjpeg/jdcoefct.c similarity index 100% rename from src/specfem2D/libjpeg/jdcoefct.c rename to external_libs/libjpeg/jdcoefct.c diff --git a/src/specfem2D/libjpeg/jdcolor.c b/external_libs/libjpeg/jdcolor.c similarity index 100% rename from src/specfem2D/libjpeg/jdcolor.c rename to external_libs/libjpeg/jdcolor.c diff --git a/src/specfem2D/libjpeg/jdct.h b/external_libs/libjpeg/jdct.h similarity index 100% rename from src/specfem2D/libjpeg/jdct.h rename to external_libs/libjpeg/jdct.h diff --git a/src/specfem2D/libjpeg/jddctmgr.c b/external_libs/libjpeg/jddctmgr.c similarity index 100% rename from src/specfem2D/libjpeg/jddctmgr.c rename to external_libs/libjpeg/jddctmgr.c diff --git a/src/specfem2D/libjpeg/jdhuff.c b/external_libs/libjpeg/jdhuff.c similarity index 100% rename from src/specfem2D/libjpeg/jdhuff.c rename to external_libs/libjpeg/jdhuff.c diff --git a/src/specfem2D/libjpeg/jdinput.c b/external_libs/libjpeg/jdinput.c similarity index 100% rename from src/specfem2D/libjpeg/jdinput.c rename to external_libs/libjpeg/jdinput.c diff --git a/src/specfem2D/libjpeg/jdmainct.c b/external_libs/libjpeg/jdmainct.c similarity index 100% rename from src/specfem2D/libjpeg/jdmainct.c rename to external_libs/libjpeg/jdmainct.c diff --git a/src/specfem2D/libjpeg/jdmarker.c b/external_libs/libjpeg/jdmarker.c similarity index 100% rename from src/specfem2D/libjpeg/jdmarker.c rename to external_libs/libjpeg/jdmarker.c diff --git a/src/specfem2D/libjpeg/jdmaster.c b/external_libs/libjpeg/jdmaster.c similarity index 100% rename from src/specfem2D/libjpeg/jdmaster.c rename to external_libs/libjpeg/jdmaster.c diff --git a/src/specfem2D/libjpeg/jdmerge.c b/external_libs/libjpeg/jdmerge.c similarity index 100% rename from src/specfem2D/libjpeg/jdmerge.c rename to external_libs/libjpeg/jdmerge.c diff --git a/src/specfem2D/libjpeg/jdpostct.c b/external_libs/libjpeg/jdpostct.c similarity index 100% rename from src/specfem2D/libjpeg/jdpostct.c rename to external_libs/libjpeg/jdpostct.c diff --git a/src/specfem2D/libjpeg/jdsample.c b/external_libs/libjpeg/jdsample.c similarity index 100% rename from src/specfem2D/libjpeg/jdsample.c rename to external_libs/libjpeg/jdsample.c diff --git a/src/specfem2D/libjpeg/jdtrans.c b/external_libs/libjpeg/jdtrans.c similarity index 100% rename from src/specfem2D/libjpeg/jdtrans.c rename to external_libs/libjpeg/jdtrans.c diff --git a/src/specfem2D/libjpeg/jerror.c b/external_libs/libjpeg/jerror.c similarity index 100% rename from src/specfem2D/libjpeg/jerror.c rename to external_libs/libjpeg/jerror.c diff --git a/src/specfem2D/libjpeg/jerror.h b/external_libs/libjpeg/jerror.h similarity index 100% rename from src/specfem2D/libjpeg/jerror.h rename to external_libs/libjpeg/jerror.h diff --git a/src/specfem2D/libjpeg/jfdctflt.c b/external_libs/libjpeg/jfdctflt.c similarity index 100% rename from src/specfem2D/libjpeg/jfdctflt.c rename to external_libs/libjpeg/jfdctflt.c diff --git a/src/specfem2D/libjpeg/jfdctfst.c b/external_libs/libjpeg/jfdctfst.c similarity index 100% rename from src/specfem2D/libjpeg/jfdctfst.c rename to external_libs/libjpeg/jfdctfst.c diff --git a/src/specfem2D/libjpeg/jfdctint.c b/external_libs/libjpeg/jfdctint.c similarity index 100% rename from src/specfem2D/libjpeg/jfdctint.c rename to external_libs/libjpeg/jfdctint.c diff --git a/src/specfem2D/libjpeg/jidctflt.c b/external_libs/libjpeg/jidctflt.c similarity index 100% rename from src/specfem2D/libjpeg/jidctflt.c rename to external_libs/libjpeg/jidctflt.c diff --git a/src/specfem2D/libjpeg/jidctfst.c b/external_libs/libjpeg/jidctfst.c similarity index 100% rename from src/specfem2D/libjpeg/jidctfst.c rename to external_libs/libjpeg/jidctfst.c diff --git a/src/specfem2D/libjpeg/jidctint.c b/external_libs/libjpeg/jidctint.c similarity index 100% rename from src/specfem2D/libjpeg/jidctint.c rename to external_libs/libjpeg/jidctint.c diff --git a/src/specfem2D/libjpeg/jinclude.h b/external_libs/libjpeg/jinclude.h similarity index 100% rename from src/specfem2D/libjpeg/jinclude.h rename to external_libs/libjpeg/jinclude.h diff --git a/src/specfem2D/libjpeg/jmemmgr.c b/external_libs/libjpeg/jmemmgr.c similarity index 100% rename from src/specfem2D/libjpeg/jmemmgr.c rename to external_libs/libjpeg/jmemmgr.c diff --git a/src/specfem2D/libjpeg/jmemnobs.c b/external_libs/libjpeg/jmemnobs.c similarity index 100% rename from src/specfem2D/libjpeg/jmemnobs.c rename to external_libs/libjpeg/jmemnobs.c diff --git a/src/specfem2D/libjpeg/jmemsys.h b/external_libs/libjpeg/jmemsys.h similarity index 100% rename from src/specfem2D/libjpeg/jmemsys.h rename to external_libs/libjpeg/jmemsys.h diff --git a/src/specfem2D/libjpeg/jmorecfg.h b/external_libs/libjpeg/jmorecfg.h similarity index 100% rename from src/specfem2D/libjpeg/jmorecfg.h rename to external_libs/libjpeg/jmorecfg.h diff --git a/src/specfem2D/libjpeg/jpegint.h b/external_libs/libjpeg/jpegint.h similarity index 100% rename from src/specfem2D/libjpeg/jpegint.h rename to external_libs/libjpeg/jpegint.h diff --git a/src/specfem2D/libjpeg/jpeglib.h b/external_libs/libjpeg/jpeglib.h similarity index 100% rename from src/specfem2D/libjpeg/jpeglib.h rename to external_libs/libjpeg/jpeglib.h diff --git a/src/specfem2D/libjpeg/jquant1.c b/external_libs/libjpeg/jquant1.c similarity index 100% rename from src/specfem2D/libjpeg/jquant1.c rename to external_libs/libjpeg/jquant1.c diff --git a/src/specfem2D/libjpeg/jquant2.c b/external_libs/libjpeg/jquant2.c similarity index 100% rename from src/specfem2D/libjpeg/jquant2.c rename to external_libs/libjpeg/jquant2.c diff --git a/src/specfem2D/libjpeg/jutils.c b/external_libs/libjpeg/jutils.c similarity index 100% rename from src/specfem2D/libjpeg/jutils.c rename to external_libs/libjpeg/jutils.c diff --git a/src/specfem2D/libjpeg/jversion.h b/external_libs/libjpeg/jversion.h similarity index 100% rename from src/specfem2D/libjpeg/jversion.h rename to external_libs/libjpeg/jversion.h diff --git a/src/specfem2D/libjpeg/libjpeg.txt b/external_libs/libjpeg/libjpeg.txt similarity index 100% rename from src/specfem2D/libjpeg/libjpeg.txt rename to external_libs/libjpeg/libjpeg.txt diff --git a/src/meshfem2D/scotch b/external_libs/scotch similarity index 100% rename from src/meshfem2D/scotch rename to external_libs/scotch diff --git a/src/meshfem2D/scotch_5.1.12b/INSTALL.txt b/external_libs/scotch_5.1.12b/INSTALL.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/INSTALL.txt rename to external_libs/scotch_5.1.12b/INSTALL.txt diff --git a/src/meshfem2D/scotch_5.1.12b/LICENSE_en.txt b/external_libs/scotch_5.1.12b/LICENSE_en.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/LICENSE_en.txt rename to external_libs/scotch_5.1.12b/LICENSE_en.txt diff --git a/src/meshfem2D/scotch_5.1.12b/README.txt b/external_libs/scotch_5.1.12b/README.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/README.txt rename to external_libs/scotch_5.1.12b/README.txt diff --git a/src/meshfem2D/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-en.txt b/external_libs/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-en.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-en.txt rename to external_libs/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-en.txt diff --git a/src/meshfem2D/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-fr.txt b/external_libs/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-fr.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-fr.txt rename to external_libs/scotch_5.1.12b/doc/Licence_CeCILL-C_V1-fr.txt diff --git a/src/meshfem2D/scotch_5.1.12b/doc/ptscotch_user5.1.pdf b/external_libs/scotch_5.1.12b/doc/ptscotch_user5.1.pdf similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/ptscotch_user5.1.pdf rename to external_libs/scotch_5.1.12b/doc/ptscotch_user5.1.pdf diff --git a/src/meshfem2D/scotch_5.1.12b/doc/ptscotch_user5.1.ps.gz b/external_libs/scotch_5.1.12b/doc/ptscotch_user5.1.ps.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/ptscotch_user5.1.ps.gz rename to external_libs/scotch_5.1.12b/doc/ptscotch_user5.1.ps.gz diff --git a/src/meshfem2D/scotch_5.1.12b/doc/scotch_user5.1.pdf b/external_libs/scotch_5.1.12b/doc/scotch_user5.1.pdf similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/scotch_user5.1.pdf rename to external_libs/scotch_5.1.12b/doc/scotch_user5.1.pdf diff --git a/src/meshfem2D/scotch_5.1.12b/doc/scotch_user5.1.ps.gz b/external_libs/scotch_5.1.12b/doc/scotch_user5.1.ps.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/doc/scotch_user5.1.ps.gz rename to external_libs/scotch_5.1.12b/doc/scotch_user5.1.ps.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/3elt.grf.gz b/external_libs/scotch_5.1.12b/grf/3elt.grf.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/3elt.grf.gz rename to external_libs/scotch_5.1.12b/grf/3elt.grf.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/3elt.xyz.gz b/external_libs/scotch_5.1.12b/grf/3elt.xyz.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/3elt.xyz.gz rename to external_libs/scotch_5.1.12b/grf/3elt.xyz.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/4elt.grf.gz b/external_libs/scotch_5.1.12b/grf/4elt.grf.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/4elt.grf.gz rename to external_libs/scotch_5.1.12b/grf/4elt.grf.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/4elt.xyz.gz b/external_libs/scotch_5.1.12b/grf/4elt.xyz.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/4elt.xyz.gz rename to external_libs/scotch_5.1.12b/grf/4elt.xyz.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/4elt2.grf.gz b/external_libs/scotch_5.1.12b/grf/4elt2.grf.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/4elt2.grf.gz rename to external_libs/scotch_5.1.12b/grf/4elt2.grf.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/4elt2.xyz.gz b/external_libs/scotch_5.1.12b/grf/4elt2.xyz.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/4elt2.xyz.gz rename to external_libs/scotch_5.1.12b/grf/4elt2.xyz.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/bump.grf.gz b/external_libs/scotch_5.1.12b/grf/bump.grf.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/bump.grf.gz rename to external_libs/scotch_5.1.12b/grf/bump.grf.gz diff --git a/src/meshfem2D/scotch_5.1.12b/grf/bump.xyz.gz b/external_libs/scotch_5.1.12b/grf/bump.xyz.gz similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/grf/bump.xyz.gz rename to external_libs/scotch_5.1.12b/grf/bump.xyz.gz diff --git a/src/meshfem2D/scotch_5.1.12b/include/.gitignore b/external_libs/scotch_5.1.12b/include/.gitignore similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/include/.gitignore rename to external_libs/scotch_5.1.12b/include/.gitignore diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/acpl.1 b/external_libs/scotch_5.1.12b/man/man1/acpl.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/acpl.1 rename to external_libs/scotch_5.1.12b/man/man1/acpl.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_ccc.1 b/external_libs/scotch_5.1.12b/man/man1/amk_ccc.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_ccc.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_ccc.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_fft2.1 b/external_libs/scotch_5.1.12b/man/man1/amk_fft2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_fft2.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_fft2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_grf.1 b/external_libs/scotch_5.1.12b/man/man1/amk_grf.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_grf.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_grf.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_hy.1 b/external_libs/scotch_5.1.12b/man/man1/amk_hy.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_hy.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_hy.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_m2.1 b/external_libs/scotch_5.1.12b/man/man1/amk_m2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_m2.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_m2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/amk_p2.1 b/external_libs/scotch_5.1.12b/man/man1/amk_p2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/amk_p2.1 rename to external_libs/scotch_5.1.12b/man/man1/amk_p2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/atst.1 b/external_libs/scotch_5.1.12b/man/man1/atst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/atst.1 rename to external_libs/scotch_5.1.12b/man/man1/atst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dggath.1 b/external_libs/scotch_5.1.12b/man/man1/dggath.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dggath.1 rename to external_libs/scotch_5.1.12b/man/man1/dggath.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dgmap.1 b/external_libs/scotch_5.1.12b/man/man1/dgmap.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dgmap.1 rename to external_libs/scotch_5.1.12b/man/man1/dgmap.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dgord.1 b/external_libs/scotch_5.1.12b/man/man1/dgord.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dgord.1 rename to external_libs/scotch_5.1.12b/man/man1/dgord.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dgpart.1 b/external_libs/scotch_5.1.12b/man/man1/dgpart.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dgpart.1 rename to external_libs/scotch_5.1.12b/man/man1/dgpart.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dgscat.1 b/external_libs/scotch_5.1.12b/man/man1/dgscat.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dgscat.1 rename to external_libs/scotch_5.1.12b/man/man1/dgscat.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/dgtst.1 b/external_libs/scotch_5.1.12b/man/man1/dgtst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/dgtst.1 rename to external_libs/scotch_5.1.12b/man/man1/dgtst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gbase.1 b/external_libs/scotch_5.1.12b/man/man1/gbase.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gbase.1 rename to external_libs/scotch_5.1.12b/man/man1/gbase.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gcv.1 b/external_libs/scotch_5.1.12b/man/man1/gcv.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gcv.1 rename to external_libs/scotch_5.1.12b/man/man1/gcv.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmap.1 b/external_libs/scotch_5.1.12b/man/man1/gmap.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmap.1 rename to external_libs/scotch_5.1.12b/man/man1/gmap.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmk_hy.1 b/external_libs/scotch_5.1.12b/man/man1/gmk_hy.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmk_hy.1 rename to external_libs/scotch_5.1.12b/man/man1/gmk_hy.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmk_m2.1 b/external_libs/scotch_5.1.12b/man/man1/gmk_m2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmk_m2.1 rename to external_libs/scotch_5.1.12b/man/man1/gmk_m2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmk_m3.1 b/external_libs/scotch_5.1.12b/man/man1/gmk_m3.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmk_m3.1 rename to external_libs/scotch_5.1.12b/man/man1/gmk_m3.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmk_msh.1 b/external_libs/scotch_5.1.12b/man/man1/gmk_msh.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmk_msh.1 rename to external_libs/scotch_5.1.12b/man/man1/gmk_msh.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmk_ub2.1 b/external_libs/scotch_5.1.12b/man/man1/gmk_ub2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmk_ub2.1 rename to external_libs/scotch_5.1.12b/man/man1/gmk_ub2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gmtst.1 b/external_libs/scotch_5.1.12b/man/man1/gmtst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gmtst.1 rename to external_libs/scotch_5.1.12b/man/man1/gmtst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gord.1 b/external_libs/scotch_5.1.12b/man/man1/gord.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gord.1 rename to external_libs/scotch_5.1.12b/man/man1/gord.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gotst.1 b/external_libs/scotch_5.1.12b/man/man1/gotst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gotst.1 rename to external_libs/scotch_5.1.12b/man/man1/gotst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gout.1 b/external_libs/scotch_5.1.12b/man/man1/gout.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gout.1 rename to external_libs/scotch_5.1.12b/man/man1/gout.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gpart.1 b/external_libs/scotch_5.1.12b/man/man1/gpart.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gpart.1 rename to external_libs/scotch_5.1.12b/man/man1/gpart.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/gtst.1 b/external_libs/scotch_5.1.12b/man/man1/gtst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/gtst.1 rename to external_libs/scotch_5.1.12b/man/man1/gtst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/mcv.1 b/external_libs/scotch_5.1.12b/man/man1/mcv.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/mcv.1 rename to external_libs/scotch_5.1.12b/man/man1/mcv.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/mmk_m2.1 b/external_libs/scotch_5.1.12b/man/man1/mmk_m2.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/mmk_m2.1 rename to external_libs/scotch_5.1.12b/man/man1/mmk_m2.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/mmk_m3.1 b/external_libs/scotch_5.1.12b/man/man1/mmk_m3.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/mmk_m3.1 rename to external_libs/scotch_5.1.12b/man/man1/mmk_m3.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/mord.1 b/external_libs/scotch_5.1.12b/man/man1/mord.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/mord.1 rename to external_libs/scotch_5.1.12b/man/man1/mord.1 diff --git a/src/meshfem2D/scotch_5.1.12b/man/man1/mtst.1 b/external_libs/scotch_5.1.12b/man/man1/mtst.1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/man/man1/mtst.1 rename to external_libs/scotch_5.1.12b/man/man1/mtst.1 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.alpha_dec_osf1 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.alpha_dec_osf1 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.alpha_dec_osf1 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.alpha_dec_osf1 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin10.icc b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin10.icc similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin10.icc rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin10.icc diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin8 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin8 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin8 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_mac_darwin8 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_freebsd b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_freebsd similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_freebsd rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_freebsd diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.c99 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.c99 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.c99 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.c99 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.debug b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.debug similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.debug rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.debug diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.nothreads b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.nothreads similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.nothreads rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.nothreads diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.prof b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.prof similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.prof rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.prof diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib.debug b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib.debug similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib.debug rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_linux2.shlib.debug diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_mingw32 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_mingw32 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_mingw32 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_pc_mingw32 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_sun_solaris5 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_sun_solaris5 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_sun_solaris5 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.i686_sun_solaris5 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.mips_sgi_irix6 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.mips_sgi_irix6 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.mips_sgi_irix6 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.mips_sgi_irix6 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.pa11_hp_ux10 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.pa11_hp_ux10 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.pa11_hp_ux10 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.pa11_hp_ux10 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.power3_ibm_aix5 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.power3_ibm_aix5 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.power3_ibm_aix5 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.power3_ibm_aix5 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.power6_ibm_aix5 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.power6_ibm_aix5 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.power6_ibm_aix5 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.power6_ibm_aix5 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.ppc450_ibm_bgp b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.ppc450_ibm_bgp similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.ppc450_ibm_bgp rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.ppc450_ibm_bgp diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_cray-xt4_linux2 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_cray-xt4_linux2 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_cray-xt4_linux2 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_cray-xt4_linux2 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_freebsd b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_freebsd similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_freebsd rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_freebsd diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2 b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2 similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2 rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2 diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc.debug b/external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc.debug similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc.debug rename to external_libs/scotch_5.1.12b/src/Make.inc/Makefile.inc.x86-64_pc_linux2.icc.debug diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/README.txt b/external_libs/scotch_5.1.12b/src/Make.inc/mingw32/README.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/README.txt rename to external_libs/scotch_5.1.12b/src/Make.inc/mingw32/README.txt diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_0.sh b/external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_0.sh similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_0.sh rename to external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_0.sh diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_1.sh b/external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_1.sh similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_1.sh rename to external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_1.sh diff --git a/src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_2.bat b/external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_2.bat similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Make.inc/mingw32/gendll_2.bat rename to external_libs/scotch_5.1.12b/src/Make.inc/mingw32/gendll_2.bat diff --git a/src/meshfem2D/scotch_5.1.12b/src/Makefile b/external_libs/scotch_5.1.12b/src/Makefile similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Makefile rename to external_libs/scotch_5.1.12b/src/Makefile diff --git a/src/meshfem2D/scotch_5.1.12b/src/Makefile.inc.in b/external_libs/scotch_5.1.12b/src/Makefile.inc.in similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/Makefile.inc.in rename to external_libs/scotch_5.1.12b/src/Makefile.inc.in diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/Makefile b/external_libs/scotch_5.1.12b/src/libscotch/Makefile similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/Makefile rename to external_libs/scotch_5.1.12b/src/libscotch/Makefile diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch.c b/external_libs/scotch_5.1.12b/src/libscotch/arch.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch.h b/external_libs/scotch_5.1.12b/src/libscotch/arch.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_build.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_build.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_build.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_build.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_build.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_build.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_build.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_build.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmplt.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_cmplt.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmplt.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_cmplt.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmplt.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_cmplt.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmplt.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_cmplt.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmpltw.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_cmpltw.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmpltw.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_cmpltw.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmpltw.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_cmpltw.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_cmpltw.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_cmpltw.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_deco.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_deco.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_deco.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_deco.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_deco.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_deco.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_deco.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_deco.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_hcub.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_hcub.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_hcub.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_hcub.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_hcub.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_hcub.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_hcub.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_hcub.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_mesh.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_mesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_mesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_mesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_mesh.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_mesh.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_mesh.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_mesh.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_tleaf.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_tleaf.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_tleaf.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_tleaf.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_tleaf.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_tleaf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_tleaf.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_tleaf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_torus.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_torus.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_torus.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_torus.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_torus.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_torus.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_torus.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_torus.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vcmplt.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_vcmplt.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vcmplt.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_vcmplt.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vcmplt.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_vcmplt.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vcmplt.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_vcmplt.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vhcub.c b/external_libs/scotch_5.1.12b/src/libscotch/arch_vhcub.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vhcub.c rename to external_libs/scotch_5.1.12b/src/libscotch/arch_vhcub.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vhcub.h b/external_libs/scotch_5.1.12b/src/libscotch/arch_vhcub.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/arch_vhcub.h rename to external_libs/scotch_5.1.12b/src/libscotch/arch_vhcub.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_bd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_df.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ex.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_sq.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.h b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.h rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_bipart_zr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_gather_all.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_gather_all.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_gather_all.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_gather_all.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_store.c b/external_libs/scotch_5.1.12b/src/libscotch/bdgraph_store.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bdgraph_store.c rename to external_libs/scotch_5.1.12b/src/libscotch/bdgraph_store.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_bd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_df.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ex.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_fm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gg.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_gp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.h b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.h rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_bipart_zr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_store.c b/external_libs/scotch_5.1.12b/src/libscotch/bgraph_store.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/bgraph_store.c rename to external_libs/scotch_5.1.12b/src/libscotch/bgraph_store.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/comm.c b/external_libs/scotch_5.1.12b/src/libscotch/comm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/comm.c rename to external_libs/scotch_5.1.12b/src/libscotch/comm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/comm.h b/external_libs/scotch_5.1.12b/src/libscotch/comm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/comm.h rename to external_libs/scotch_5.1.12b/src/libscotch/comm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common.c b/external_libs/scotch_5.1.12b/src/libscotch/common.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common.c rename to external_libs/scotch_5.1.12b/src/libscotch/common.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common.h b/external_libs/scotch_5.1.12b/src/libscotch/common.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common.h rename to external_libs/scotch_5.1.12b/src/libscotch/common.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file.c b/external_libs/scotch_5.1.12b/src/libscotch/common_file.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_file.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file.h b/external_libs/scotch_5.1.12b/src/libscotch/common_file.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file.h rename to external_libs/scotch_5.1.12b/src/libscotch/common_file.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_compress.c b/external_libs/scotch_5.1.12b/src/libscotch/common_file_compress.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_compress.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_file_compress.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_compress.h b/external_libs/scotch_5.1.12b/src/libscotch/common_file_compress.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_compress.h rename to external_libs/scotch_5.1.12b/src/libscotch/common_file_compress.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_uncompress.c b/external_libs/scotch_5.1.12b/src/libscotch/common_file_uncompress.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_file_uncompress.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_file_uncompress.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_integer.c b/external_libs/scotch_5.1.12b/src/libscotch/common_integer.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_integer.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_integer.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_memory.c b/external_libs/scotch_5.1.12b/src/libscotch/common_memory.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_memory.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_memory.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_sort.c b/external_libs/scotch_5.1.12b/src/libscotch/common_sort.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_sort.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_sort.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_string.c b/external_libs/scotch_5.1.12b/src/libscotch/common_string.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_string.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_string.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/common_stub.c b/external_libs/scotch_5.1.12b/src/libscotch/common_stub.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/common_stub.c rename to external_libs/scotch_5.1.12b/src/libscotch/common_stub.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_allreduce.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_allreduce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_allreduce.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_allreduce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_allreduce.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_allreduce.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_allreduce.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_allreduce.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_band.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_band.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_band.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_band.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_build.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_build.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_build.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_build.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_grid3d.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_hcub.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_hcub.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_build_hcub.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_build_hcub.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen_edge.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen_edge.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_coarsen_edge.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_coarsen_edge.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_comm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_fold_dup.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_gather.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_gather.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_gather.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_gather.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_gather_all.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_gather_all.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_gather_all.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_gather_all.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_ghst.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_ghst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_ghst.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_ghst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_ghst.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_ghst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_ghst.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_ghst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo_fill.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo_fill.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_halo_fill.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_halo_fill.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_induce.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_induce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_induce.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_induce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_load.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_load.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_load.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_load.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_load.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_load.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_load.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_load.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_save.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_save.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_io_save.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_io_save.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match.h b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match.h rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_check.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_scan.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_scan.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_scan.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_scan.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_sync_coll.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_sync_coll.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_sync_coll.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_sync_coll.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_sync_ptop.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_sync_ptop.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_match_sync_ptop.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_match_sync_ptop.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_scatter.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_scatter.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_scatter.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_scatter.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_view.c b/external_libs/scotch_5.1.12b/src/libscotch/dgraph_view.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dgraph_view.c rename to external_libs/scotch_5.1.12b/src/libscotch/dgraph_view.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping.c b/external_libs/scotch_5.1.12b/src/libscotch/dmapping.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping.c rename to external_libs/scotch_5.1.12b/src/libscotch/dmapping.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping.h b/external_libs/scotch_5.1.12b/src/libscotch/dmapping.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping.h rename to external_libs/scotch_5.1.12b/src/libscotch/dmapping.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping_io.c b/external_libs/scotch_5.1.12b/src/libscotch/dmapping_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dmapping_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/dmapping_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder.h b/external_libs/scotch_5.1.12b/src/libscotch/dorder.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder.h rename to external_libs/scotch_5.1.12b/src/libscotch/dorder.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_gather.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_gather.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_gather.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_gather.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_gather.h b/external_libs/scotch_5.1.12b/src/libscotch/dorder_gather.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_gather.h rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_gather.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io_block.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_io_block.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io_block.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_io_block.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io_tree.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_io_tree.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_io_tree.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_io_tree.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_perm.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_perm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_perm.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_perm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_perm.h b/external_libs/scotch_5.1.12b/src/libscotch/dorder_perm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_perm.h rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_perm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_tree_dist.c b/external_libs/scotch_5.1.12b/src/libscotch/dorder_tree_dist.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dorder_tree_dist.c rename to external_libs/scotch_5.1.12b/src/libscotch/dorder_tree_dist.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/dummysizes.c b/external_libs/scotch_5.1.12b/src/libscotch/dummysizes.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/dummysizes.c rename to external_libs/scotch_5.1.12b/src/libscotch/dummysizes.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/gain.c b/external_libs/scotch_5.1.12b/src/libscotch/gain.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/gain.c rename to external_libs/scotch_5.1.12b/src/libscotch/gain.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/gain.h b/external_libs/scotch_5.1.12b/src/libscotch/gain.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/gain.h rename to external_libs/scotch_5.1.12b/src/libscotch/gain.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/geom.c b/external_libs/scotch_5.1.12b/src/libscotch/geom.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/geom.c rename to external_libs/scotch_5.1.12b/src/libscotch/geom.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/geom.h b/external_libs/scotch_5.1.12b/src/libscotch/geom.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/geom.h rename to external_libs/scotch_5.1.12b/src/libscotch/geom.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph.c b/external_libs/scotch_5.1.12b/src/libscotch/graph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph.h b/external_libs/scotch_5.1.12b/src/libscotch/graph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_base.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_base.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_base.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_base.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen_edge.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen_edge.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_coarsen_edge.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_coarsen_edge.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_induce.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_induce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_induce.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_induce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_induce.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_induce.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_induce.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_induce.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_io.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_chac.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_chac.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_chac.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_chac.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_habo.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_habo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_habo.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_habo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_habo.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_habo.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_habo.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_habo.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_mmkt.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_mmkt.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_mmkt.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_mmkt.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_mmkt.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_mmkt.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_mmkt.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_mmkt.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_scot.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_scot.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_scot.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_scot.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_scot.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_io_scot.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_io_scot.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_io_scot.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_list.c b/external_libs/scotch_5.1.12b/src/libscotch/graph_list.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_list.c rename to external_libs/scotch_5.1.12b/src/libscotch/graph_list.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_list.h b/external_libs/scotch_5.1.12b/src/libscotch/graph_list.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/graph_list.h rename to external_libs/scotch_5.1.12b/src/libscotch/graph_list.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hd.c b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hd.h b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hf.c b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hf.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hf.c rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hf.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hf.h b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hf.h rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hx.c b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hx.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hx.c rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hx.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hx.h b/external_libs/scotch_5.1.12b/src/libscotch/hall_order_hx.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hall_order_hx.h rename to external_libs/scotch_5.1.12b/src/libscotch/hall_order_hx.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_fold.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_fold.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_fold.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_fold.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_fold.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_fold.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_fold.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_fold.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_gather.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_gather.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_gather.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_gather.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_induce.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_induce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_induce.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_induce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_nd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_si.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_si.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_si.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_si.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_si.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_si.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_si.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_si.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_sq.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_st.c b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_st.h b/external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hdgraph_order_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/hdgraph_order_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce_edge.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce_edge.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_induce_edge.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_induce_edge.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_bl.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_bl.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_bl.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_bl.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_bl.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_bl.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_bl.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_bl.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_cp.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_cp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_cp.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_cp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_cp.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_cp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_cp.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_cp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_gp.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_gp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_gp.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_gp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_gp.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_gp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_gp.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_gp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hd.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hd.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hf.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hf.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hf.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hf.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hf.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hf.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hx.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hx.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hx.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hx.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hx.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hx.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_hx.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_hx.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_nd.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_nd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_nd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_nd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_nd.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_nd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_nd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_nd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_si.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_si.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_si.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_si.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_si.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_si.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_si.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_si.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_st.c b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_st.h b/external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hgraph_order_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/hgraph_order_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_check.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_hgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_hgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_hgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_hgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_hgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_hgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_hgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_hgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_induce.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_induce.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_induce.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_induce.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_induce.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_induce.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_induce.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_induce.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_mesh.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_mesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_mesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_mesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_bl.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_bl.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_bl.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_bl.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_bl.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_bl.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_bl.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_bl.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_cp.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_cp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_cp.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_cp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_cp.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_cp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_cp.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_cp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gp.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gp.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gp.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gp.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gr.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gr.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gr.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_gr.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_gr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hd.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hd.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hf.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hf.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hf.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hf.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hf.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hf.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hx.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hx.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hx.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hx.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hx.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hx.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_hx.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_hx.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_nd.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_nd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_nd.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_nd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_nd.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_nd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_nd.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_nd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_si.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_si.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_si.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_si.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_si.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_si.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_si.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_si.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_st.c b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_st.h b/external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/hmesh_order_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/hmesh_order_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.c b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.c rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.h b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.h rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.c b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.c rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.h b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.h rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_map.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.c b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.c rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.h b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.h rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_rb_part.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_st.c b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_st.h b/external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kdgraph_map_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/kdgraph_map_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_map.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_rb_part.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_st.c b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_st.h b/external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/kgraph_map_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/kgraph_map_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_ll.c b/external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_ll.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_ll.c rename to external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_ll.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_ly.h b/external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_ly.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_ly.h rename to external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_ly.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_yy.c b/external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_yy.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/last_resort/parser_yy.c rename to external_libs/scotch_5.1.12b/src/libscotch/last_resort/parser_yy.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library.h b/external_libs/scotch_5.1.12b/src/libscotch/library.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library.h rename to external_libs/scotch_5.1.12b/src/libscotch/library.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch.c b/external_libs/scotch_5.1.12b/src/libscotch/library_arch.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_arch.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_build.c b/external_libs/scotch_5.1.12b/src/libscotch/library_arch_build.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_build.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_arch_build.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_build_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_arch_build_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_build_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_arch_build_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_arch_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_arch_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_arch_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_build_grid3d_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_check_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_check_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_check_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_check_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_coarsen_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_gather.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_gather.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_gather.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_gather.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_gather_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_gather_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_gather_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_gather_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_halo.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_halo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_halo.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_halo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_halo_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_halo_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_halo_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_halo_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_load.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_load.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_load.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_load.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_load_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_load_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_load_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_load_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_save.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_save.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_save.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_save.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_save_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_save_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_io_save_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_io_save_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_view.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_view.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_view.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_view.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_view_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_view_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_map_view_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_map_view_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_gather_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_block_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_io_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_perm_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_order_tree_dist_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_scatter.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_scatter.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_scatter.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_scatter.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_scatter_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_scatter_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_scatter_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_scatter_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat.h b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat.h rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dgraph_stat_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dgraph_stat_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dmapping.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dmapping.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dmapping.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dmapping.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dmapping.h b/external_libs/scotch_5.1.12b/src/libscotch/library_dmapping.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dmapping.h rename to external_libs/scotch_5.1.12b/src/libscotch/library_dmapping.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dorder.c b/external_libs/scotch_5.1.12b/src/libscotch/library_dorder.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_dorder.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_dorder.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_error.c b/external_libs/scotch_5.1.12b/src/libscotch/library_error.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_error.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_error.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_error_exit.c b/external_libs/scotch_5.1.12b/src/libscotch/library_error_exit.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_error_exit.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_error_exit.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_geom.c b/external_libs/scotch_5.1.12b/src/libscotch/library_geom.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_geom.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_geom.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_geom_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_geom_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_geom_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_geom_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_base.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_base.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_base.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_base.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_base_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_base_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_base_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_base_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_check_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_check_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_check_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_check_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_coarsen.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_coarsen.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_coarsen.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_coarsen.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_coarsen_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_coarsen_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_coarsen_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_coarsen_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_chac.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_chac.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_chac.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_chac.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_chac_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_chac_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_chac_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_chac_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_habo.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_habo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_habo.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_habo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_habo_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_habo_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_habo_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_habo_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_mmkt_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_scot.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_scot.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_scot.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_scot.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_scot_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_scot_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_io_scot_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_io_scot_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_map.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_map.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view.h b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view.h rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_map_view_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_map_view_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_order.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_order.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_order_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_graph_order_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_graph_order_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_graph_order_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mapping.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mapping.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mapping.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mapping.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mapping.h b/external_libs/scotch_5.1.12b/src/libscotch/library_mapping.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mapping.h rename to external_libs/scotch_5.1.12b/src/libscotch/library_mapping.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_graph.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_graph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_graph.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_graph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_graph_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_graph_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_graph_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_graph_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_habo.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_habo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_habo.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_habo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_habo_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_habo_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_habo_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_habo_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_scot.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_scot.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_scot.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_scot.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_scot_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_scot_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_io_scot_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_io_scot_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_order.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_order.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_order_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_mesh_order_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_mesh_order_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_mesh_order_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_order.c b/external_libs/scotch_5.1.12b/src/libscotch/library_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_order.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_order.h b/external_libs/scotch_5.1.12b/src/libscotch/library_order.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_order.h rename to external_libs/scotch_5.1.12b/src/libscotch/library_order.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_parser.c b/external_libs/scotch_5.1.12b/src/libscotch/library_parser.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_parser.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_parser.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_parser_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_parser_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_parser_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_parser_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_random.c b/external_libs/scotch_5.1.12b/src/libscotch/library_random.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_random.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_random.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_random_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_random_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_random_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_random_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_strat.c b/external_libs/scotch_5.1.12b/src/libscotch/library_strat.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_strat.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_strat.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_version.c b/external_libs/scotch_5.1.12b/src/libscotch/library_version.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_version.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_version.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/library_version_f.c b/external_libs/scotch_5.1.12b/src/libscotch/library_version_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/library_version_f.c rename to external_libs/scotch_5.1.12b/src/libscotch/library_version_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/libraryf.h b/external_libs/scotch_5.1.12b/src/libscotch/libraryf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/libraryf.h rename to external_libs/scotch_5.1.12b/src/libscotch/libraryf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping.c b/external_libs/scotch_5.1.12b/src/libscotch/mapping.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping.c rename to external_libs/scotch_5.1.12b/src/libscotch/mapping.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping.h b/external_libs/scotch_5.1.12b/src/libscotch/mapping.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping.h rename to external_libs/scotch_5.1.12b/src/libscotch/mapping.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping_io.c b/external_libs/scotch_5.1.12b/src/libscotch/mapping_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/mapping_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping_io.h b/external_libs/scotch_5.1.12b/src/libscotch/mapping_io.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mapping_io.h rename to external_libs/scotch_5.1.12b/src/libscotch/mapping_io.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh.h b/external_libs/scotch_5.1.12b/src/libscotch/mesh.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh.h rename to external_libs/scotch_5.1.12b/src/libscotch/mesh.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_check.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_coarsen.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_coarsen.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_coarsen.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_coarsen.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_coarsen.h b/external_libs/scotch_5.1.12b/src/libscotch/mesh_coarsen.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_coarsen.h rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_coarsen.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_graph.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_graph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_graph.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_graph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_graph.h b/external_libs/scotch_5.1.12b/src/libscotch/mesh_graph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_graph.h rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_graph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.h b/external_libs/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.h rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_induce_sepa.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io.h b/external_libs/scotch_5.1.12b/src/libscotch/mesh_io.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io.h rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_io.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io_habo.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_io_habo.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io_habo.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_io_habo.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io_scot.c b/external_libs/scotch_5.1.12b/src/libscotch/mesh_io_scot.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/mesh_io_scot.c rename to external_libs/scotch_5.1.12b/src/libscotch/mesh_io_scot.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/module.h b/external_libs/scotch_5.1.12b/src/libscotch/module.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/module.h rename to external_libs/scotch_5.1.12b/src/libscotch/module.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/order.c b/external_libs/scotch_5.1.12b/src/libscotch/order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/order.c rename to external_libs/scotch_5.1.12b/src/libscotch/order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/order.h b/external_libs/scotch_5.1.12b/src/libscotch/order.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/order.h rename to external_libs/scotch_5.1.12b/src/libscotch/order.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/order_check.c b/external_libs/scotch_5.1.12b/src/libscotch/order_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/order_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/order_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/order_io.c b/external_libs/scotch_5.1.12b/src/libscotch/order_io.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/order_io.c rename to external_libs/scotch_5.1.12b/src/libscotch/order_io.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser.c b/external_libs/scotch_5.1.12b/src/libscotch/parser.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser.c rename to external_libs/scotch_5.1.12b/src/libscotch/parser.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser.h b/external_libs/scotch_5.1.12b/src/libscotch/parser.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser.h rename to external_libs/scotch_5.1.12b/src/libscotch/parser.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ll.h b/external_libs/scotch_5.1.12b/src/libscotch/parser_ll.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ll.h rename to external_libs/scotch_5.1.12b/src/libscotch/parser_ll.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ll.l b/external_libs/scotch_5.1.12b/src/libscotch/parser_ll.l similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_ll.l rename to external_libs/scotch_5.1.12b/src/libscotch/parser_ll.l diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_yy.h b/external_libs/scotch_5.1.12b/src/libscotch/parser_yy.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_yy.h rename to external_libs/scotch_5.1.12b/src/libscotch/parser_yy.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_yy.y b/external_libs/scotch_5.1.12b/src/libscotch/parser_yy.y similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/parser_yy.y rename to external_libs/scotch_5.1.12b/src/libscotch/parser_yy.y diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_gather_all.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_gather_all.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_gather_all.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_gather_all.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_bd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_df.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_sq.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.h b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.h rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_separate_zr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_store.c b/external_libs/scotch_5.1.12b/src/libscotch/vdgraph_store.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vdgraph_store.c rename to external_libs/scotch_5.1.12b/src/libscotch/vdgraph_store.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_check.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_bd.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_es.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_es.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_es.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_es.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_es.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_es.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_es.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_es.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_fm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gg.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_gp.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_st.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_st.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_th.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_th.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_th.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_th.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_th.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_th.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_th.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_th.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_vw.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.h b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.h rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_separate_zr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_store.c b/external_libs/scotch_5.1.12b/src/libscotch/vgraph_store.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vgraph_store.c rename to external_libs/scotch_5.1.12b/src/libscotch/vgraph_store.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_check.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_check.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_check.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_check.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_fm.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gg.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_gr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_ml.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_st.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_st.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_st.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_st.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_st.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_st.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_st.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_st.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.h b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.h rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_separate_zr.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_store.c b/external_libs/scotch_5.1.12b/src/libscotch/vmesh_store.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotch/vmesh_store.c rename to external_libs/scotch_5.1.12b/src/libscotch/vmesh_store.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/Makefile b/external_libs/scotch_5.1.12b/src/libscotchmetis/Makefile similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/Makefile rename to external_libs/scotch_5.1.12b/src/libscotchmetis/Makefile diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis.h b/external_libs/scotch_5.1.12b/src/libscotchmetis/metis.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis.h rename to external_libs/scotch_5.1.12b/src/libscotchmetis/metis.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_order.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_order.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_order_f.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_order_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_order_f.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_order_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_part.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_part.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_part.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_part.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_part_f.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_part_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/metis_graph_part_f.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/metis_graph_part_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis.h b/external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis.h rename to external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order_f.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order_f.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_order_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part_f.c b/external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part_f.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part_f.c rename to external_libs/scotch_5.1.12b/src/libscotchmetis/parmetis_dgraph_part_f.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/Makefile b/external_libs/scotch_5.1.12b/src/scotch/Makefile similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/Makefile rename to external_libs/scotch_5.1.12b/src/scotch/Makefile diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/acpl.c b/external_libs/scotch_5.1.12b/src/scotch/acpl.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/acpl.c rename to external_libs/scotch_5.1.12b/src/scotch/acpl.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/acpl.h b/external_libs/scotch_5.1.12b/src/scotch/acpl.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/acpl.h rename to external_libs/scotch_5.1.12b/src/scotch/acpl.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_ccc.c b/external_libs/scotch_5.1.12b/src/scotch/amk_ccc.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_ccc.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_ccc.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_ccc.h b/external_libs/scotch_5.1.12b/src/scotch/amk_ccc.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_ccc.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_ccc.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_fft2.c b/external_libs/scotch_5.1.12b/src/scotch/amk_fft2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_fft2.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_fft2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_fft2.h b/external_libs/scotch_5.1.12b/src/scotch/amk_fft2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_fft2.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_fft2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_grf.c b/external_libs/scotch_5.1.12b/src/scotch/amk_grf.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_grf.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_grf.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_grf.h b/external_libs/scotch_5.1.12b/src/scotch/amk_grf.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_grf.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_grf.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_hy.c b/external_libs/scotch_5.1.12b/src/scotch/amk_hy.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_hy.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_hy.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_hy.h b/external_libs/scotch_5.1.12b/src/scotch/amk_hy.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_hy.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_hy.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_m2.c b/external_libs/scotch_5.1.12b/src/scotch/amk_m2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_m2.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_m2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_m2.h b/external_libs/scotch_5.1.12b/src/scotch/amk_m2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_m2.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_m2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_p2.c b/external_libs/scotch_5.1.12b/src/scotch/amk_p2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_p2.c rename to external_libs/scotch_5.1.12b/src/scotch/amk_p2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/amk_p2.h b/external_libs/scotch_5.1.12b/src/scotch/amk_p2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/amk_p2.h rename to external_libs/scotch_5.1.12b/src/scotch/amk_p2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/atst.c b/external_libs/scotch_5.1.12b/src/scotch/atst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/atst.c rename to external_libs/scotch_5.1.12b/src/scotch/atst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/atst.h b/external_libs/scotch_5.1.12b/src/scotch/atst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/atst.h rename to external_libs/scotch_5.1.12b/src/scotch/atst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dggath.c b/external_libs/scotch_5.1.12b/src/scotch/dggath.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dggath.c rename to external_libs/scotch_5.1.12b/src/scotch/dggath.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dggath.h b/external_libs/scotch_5.1.12b/src/scotch/dggath.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dggath.h rename to external_libs/scotch_5.1.12b/src/scotch/dggath.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgmap.c b/external_libs/scotch_5.1.12b/src/scotch/dgmap.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgmap.c rename to external_libs/scotch_5.1.12b/src/scotch/dgmap.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgmap.h b/external_libs/scotch_5.1.12b/src/scotch/dgmap.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgmap.h rename to external_libs/scotch_5.1.12b/src/scotch/dgmap.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgord.c b/external_libs/scotch_5.1.12b/src/scotch/dgord.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgord.c rename to external_libs/scotch_5.1.12b/src/scotch/dgord.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgord.h b/external_libs/scotch_5.1.12b/src/scotch/dgord.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgord.h rename to external_libs/scotch_5.1.12b/src/scotch/dgord.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgscat.c b/external_libs/scotch_5.1.12b/src/scotch/dgscat.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgscat.c rename to external_libs/scotch_5.1.12b/src/scotch/dgscat.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgscat.h b/external_libs/scotch_5.1.12b/src/scotch/dgscat.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgscat.h rename to external_libs/scotch_5.1.12b/src/scotch/dgscat.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgtst.c b/external_libs/scotch_5.1.12b/src/scotch/dgtst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgtst.c rename to external_libs/scotch_5.1.12b/src/scotch/dgtst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/dgtst.h b/external_libs/scotch_5.1.12b/src/scotch/dgtst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/dgtst.h rename to external_libs/scotch_5.1.12b/src/scotch/dgtst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gbase.c b/external_libs/scotch_5.1.12b/src/scotch/gbase.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gbase.c rename to external_libs/scotch_5.1.12b/src/scotch/gbase.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gbase.h b/external_libs/scotch_5.1.12b/src/scotch/gbase.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gbase.h rename to external_libs/scotch_5.1.12b/src/scotch/gbase.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gcv.c b/external_libs/scotch_5.1.12b/src/scotch/gcv.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gcv.c rename to external_libs/scotch_5.1.12b/src/scotch/gcv.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gcv.h b/external_libs/scotch_5.1.12b/src/scotch/gcv.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gcv.h rename to external_libs/scotch_5.1.12b/src/scotch/gcv.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmap.c b/external_libs/scotch_5.1.12b/src/scotch/gmap.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmap.c rename to external_libs/scotch_5.1.12b/src/scotch/gmap.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmap.h b/external_libs/scotch_5.1.12b/src/scotch/gmap.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmap.h rename to external_libs/scotch_5.1.12b/src/scotch/gmap.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_hy.c b/external_libs/scotch_5.1.12b/src/scotch/gmk_hy.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_hy.c rename to external_libs/scotch_5.1.12b/src/scotch/gmk_hy.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_hy.h b/external_libs/scotch_5.1.12b/src/scotch/gmk_hy.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_hy.h rename to external_libs/scotch_5.1.12b/src/scotch/gmk_hy.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m2.c b/external_libs/scotch_5.1.12b/src/scotch/gmk_m2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m2.c rename to external_libs/scotch_5.1.12b/src/scotch/gmk_m2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m2.h b/external_libs/scotch_5.1.12b/src/scotch/gmk_m2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m2.h rename to external_libs/scotch_5.1.12b/src/scotch/gmk_m2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m3.c b/external_libs/scotch_5.1.12b/src/scotch/gmk_m3.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m3.c rename to external_libs/scotch_5.1.12b/src/scotch/gmk_m3.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m3.h b/external_libs/scotch_5.1.12b/src/scotch/gmk_m3.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_m3.h rename to external_libs/scotch_5.1.12b/src/scotch/gmk_m3.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_msh.c b/external_libs/scotch_5.1.12b/src/scotch/gmk_msh.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_msh.c rename to external_libs/scotch_5.1.12b/src/scotch/gmk_msh.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_msh.h b/external_libs/scotch_5.1.12b/src/scotch/gmk_msh.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_msh.h rename to external_libs/scotch_5.1.12b/src/scotch/gmk_msh.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_ub2.c b/external_libs/scotch_5.1.12b/src/scotch/gmk_ub2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_ub2.c rename to external_libs/scotch_5.1.12b/src/scotch/gmk_ub2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_ub2.h b/external_libs/scotch_5.1.12b/src/scotch/gmk_ub2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmk_ub2.h rename to external_libs/scotch_5.1.12b/src/scotch/gmk_ub2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmtst.c b/external_libs/scotch_5.1.12b/src/scotch/gmtst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmtst.c rename to external_libs/scotch_5.1.12b/src/scotch/gmtst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gmtst.h b/external_libs/scotch_5.1.12b/src/scotch/gmtst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gmtst.h rename to external_libs/scotch_5.1.12b/src/scotch/gmtst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gord.c b/external_libs/scotch_5.1.12b/src/scotch/gord.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gord.c rename to external_libs/scotch_5.1.12b/src/scotch/gord.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gord.h b/external_libs/scotch_5.1.12b/src/scotch/gord.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gord.h rename to external_libs/scotch_5.1.12b/src/scotch/gord.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gotst.c b/external_libs/scotch_5.1.12b/src/scotch/gotst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gotst.c rename to external_libs/scotch_5.1.12b/src/scotch/gotst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gotst.h b/external_libs/scotch_5.1.12b/src/scotch/gotst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gotst.h rename to external_libs/scotch_5.1.12b/src/scotch/gotst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gout_c.c b/external_libs/scotch_5.1.12b/src/scotch/gout_c.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gout_c.c rename to external_libs/scotch_5.1.12b/src/scotch/gout_c.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gout_c.h b/external_libs/scotch_5.1.12b/src/scotch/gout_c.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gout_c.h rename to external_libs/scotch_5.1.12b/src/scotch/gout_c.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gout_o.c b/external_libs/scotch_5.1.12b/src/scotch/gout_o.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gout_o.c rename to external_libs/scotch_5.1.12b/src/scotch/gout_o.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gout_o.h b/external_libs/scotch_5.1.12b/src/scotch/gout_o.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gout_o.h rename to external_libs/scotch_5.1.12b/src/scotch/gout_o.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gscat.c b/external_libs/scotch_5.1.12b/src/scotch/gscat.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gscat.c rename to external_libs/scotch_5.1.12b/src/scotch/gscat.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gscat.h b/external_libs/scotch_5.1.12b/src/scotch/gscat.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gscat.h rename to external_libs/scotch_5.1.12b/src/scotch/gscat.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gtst.c b/external_libs/scotch_5.1.12b/src/scotch/gtst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gtst.c rename to external_libs/scotch_5.1.12b/src/scotch/gtst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/gtst.h b/external_libs/scotch_5.1.12b/src/scotch/gtst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/gtst.h rename to external_libs/scotch_5.1.12b/src/scotch/gtst.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mcv.c b/external_libs/scotch_5.1.12b/src/scotch/mcv.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mcv.c rename to external_libs/scotch_5.1.12b/src/scotch/mcv.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mcv.h b/external_libs/scotch_5.1.12b/src/scotch/mcv.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mcv.h rename to external_libs/scotch_5.1.12b/src/scotch/mcv.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m2.c b/external_libs/scotch_5.1.12b/src/scotch/mmk_m2.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m2.c rename to external_libs/scotch_5.1.12b/src/scotch/mmk_m2.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m2.h b/external_libs/scotch_5.1.12b/src/scotch/mmk_m2.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m2.h rename to external_libs/scotch_5.1.12b/src/scotch/mmk_m2.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m3.c b/external_libs/scotch_5.1.12b/src/scotch/mmk_m3.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m3.c rename to external_libs/scotch_5.1.12b/src/scotch/mmk_m3.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m3.h b/external_libs/scotch_5.1.12b/src/scotch/mmk_m3.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mmk_m3.h rename to external_libs/scotch_5.1.12b/src/scotch/mmk_m3.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mord.c b/external_libs/scotch_5.1.12b/src/scotch/mord.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mord.c rename to external_libs/scotch_5.1.12b/src/scotch/mord.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mord.h b/external_libs/scotch_5.1.12b/src/scotch/mord.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mord.h rename to external_libs/scotch_5.1.12b/src/scotch/mord.h diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mtst.c b/external_libs/scotch_5.1.12b/src/scotch/mtst.c similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mtst.c rename to external_libs/scotch_5.1.12b/src/scotch/mtst.c diff --git a/src/meshfem2D/scotch_5.1.12b/src/scotch/mtst.h b/external_libs/scotch_5.1.12b/src/scotch/mtst.h similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/src/scotch/mtst.h rename to external_libs/scotch_5.1.12b/src/scotch/mtst.h diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/SP2_16.txt b/external_libs/scotch_5.1.12b/tgt/SP2_16.txt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/SP2_16.txt rename to external_libs/scotch_5.1.12b/tgt/SP2_16.txt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/T3D_64.tgt b/external_libs/scotch_5.1.12b/tgt/T3D_64.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/T3D_64.tgt rename to external_libs/scotch_5.1.12b/tgt/T3D_64.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h1.tgt b/external_libs/scotch_5.1.12b/tgt/h1.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h1.tgt rename to external_libs/scotch_5.1.12b/tgt/h1.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h10.tgt b/external_libs/scotch_5.1.12b/tgt/h10.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h10.tgt rename to external_libs/scotch_5.1.12b/tgt/h10.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h2.tgt b/external_libs/scotch_5.1.12b/tgt/h2.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h2.tgt rename to external_libs/scotch_5.1.12b/tgt/h2.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h3.tgt b/external_libs/scotch_5.1.12b/tgt/h3.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h3.tgt rename to external_libs/scotch_5.1.12b/tgt/h3.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h4.tgt b/external_libs/scotch_5.1.12b/tgt/h4.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h4.tgt rename to external_libs/scotch_5.1.12b/tgt/h4.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h5.tgt b/external_libs/scotch_5.1.12b/tgt/h5.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h5.tgt rename to external_libs/scotch_5.1.12b/tgt/h5.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h6.tgt b/external_libs/scotch_5.1.12b/tgt/h6.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h6.tgt rename to external_libs/scotch_5.1.12b/tgt/h6.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h7.tgt b/external_libs/scotch_5.1.12b/tgt/h7.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h7.tgt rename to external_libs/scotch_5.1.12b/tgt/h7.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h8.tgt b/external_libs/scotch_5.1.12b/tgt/h8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h8.tgt rename to external_libs/scotch_5.1.12b/tgt/h8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/h9.tgt b/external_libs/scotch_5.1.12b/tgt/h9.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/h9.tgt rename to external_libs/scotch_5.1.12b/tgt/h9.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k1.tgt b/external_libs/scotch_5.1.12b/tgt/k1.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k1.tgt rename to external_libs/scotch_5.1.12b/tgt/k1.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k12.tgt b/external_libs/scotch_5.1.12b/tgt/k12.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k12.tgt rename to external_libs/scotch_5.1.12b/tgt/k12.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k128.tgt b/external_libs/scotch_5.1.12b/tgt/k128.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k128.tgt rename to external_libs/scotch_5.1.12b/tgt/k128.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k16.tgt b/external_libs/scotch_5.1.12b/tgt/k16.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k16.tgt rename to external_libs/scotch_5.1.12b/tgt/k16.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k2.tgt b/external_libs/scotch_5.1.12b/tgt/k2.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k2.tgt rename to external_libs/scotch_5.1.12b/tgt/k2.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k24.tgt b/external_libs/scotch_5.1.12b/tgt/k24.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k24.tgt rename to external_libs/scotch_5.1.12b/tgt/k24.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k256.tgt b/external_libs/scotch_5.1.12b/tgt/k256.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k256.tgt rename to external_libs/scotch_5.1.12b/tgt/k256.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k32.tgt b/external_libs/scotch_5.1.12b/tgt/k32.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k32.tgt rename to external_libs/scotch_5.1.12b/tgt/k32.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k4.tgt b/external_libs/scotch_5.1.12b/tgt/k4.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k4.tgt rename to external_libs/scotch_5.1.12b/tgt/k4.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k48.tgt b/external_libs/scotch_5.1.12b/tgt/k48.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k48.tgt rename to external_libs/scotch_5.1.12b/tgt/k48.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k512.tgt b/external_libs/scotch_5.1.12b/tgt/k512.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k512.tgt rename to external_libs/scotch_5.1.12b/tgt/k512.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k6.tgt b/external_libs/scotch_5.1.12b/tgt/k6.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k6.tgt rename to external_libs/scotch_5.1.12b/tgt/k6.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k64.tgt b/external_libs/scotch_5.1.12b/tgt/k64.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k64.tgt rename to external_libs/scotch_5.1.12b/tgt/k64.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k7.tgt b/external_libs/scotch_5.1.12b/tgt/k7.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k7.tgt rename to external_libs/scotch_5.1.12b/tgt/k7.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k8.tgt b/external_libs/scotch_5.1.12b/tgt/k8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k8.tgt rename to external_libs/scotch_5.1.12b/tgt/k8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/k96.tgt b/external_libs/scotch_5.1.12b/tgt/k96.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/k96.tgt rename to external_libs/scotch_5.1.12b/tgt/k96.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m10x10.tgt b/external_libs/scotch_5.1.12b/tgt/m10x10.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m10x10.tgt rename to external_libs/scotch_5.1.12b/tgt/m10x10.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m10x20.tgt b/external_libs/scotch_5.1.12b/tgt/m10x20.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m10x20.tgt rename to external_libs/scotch_5.1.12b/tgt/m10x20.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m11x13.tgt b/external_libs/scotch_5.1.12b/tgt/m11x13.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m11x13.tgt rename to external_libs/scotch_5.1.12b/tgt/m11x13.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m16x16.tgt b/external_libs/scotch_5.1.12b/tgt/m16x16.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m16x16.tgt rename to external_libs/scotch_5.1.12b/tgt/m16x16.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m16x32.tgt b/external_libs/scotch_5.1.12b/tgt/m16x32.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m16x32.tgt rename to external_libs/scotch_5.1.12b/tgt/m16x32.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m17x19.tgt b/external_libs/scotch_5.1.12b/tgt/m17x19.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m17x19.tgt rename to external_libs/scotch_5.1.12b/tgt/m17x19.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m19x21.tgt b/external_libs/scotch_5.1.12b/tgt/m19x21.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m19x21.tgt rename to external_libs/scotch_5.1.12b/tgt/m19x21.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m19x31.tgt b/external_libs/scotch_5.1.12b/tgt/m19x31.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m19x31.tgt rename to external_libs/scotch_5.1.12b/tgt/m19x31.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m21x23.tgt b/external_libs/scotch_5.1.12b/tgt/m21x23.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m21x23.tgt rename to external_libs/scotch_5.1.12b/tgt/m21x23.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m23x25.tgt b/external_libs/scotch_5.1.12b/tgt/m23x25.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m23x25.tgt rename to external_libs/scotch_5.1.12b/tgt/m23x25.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m24x24.tgt b/external_libs/scotch_5.1.12b/tgt/m24x24.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m24x24.tgt rename to external_libs/scotch_5.1.12b/tgt/m24x24.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m25x27.tgt b/external_libs/scotch_5.1.12b/tgt/m25x27.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m25x27.tgt rename to external_libs/scotch_5.1.12b/tgt/m25x27.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m27x29.tgt b/external_libs/scotch_5.1.12b/tgt/m27x29.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m27x29.tgt rename to external_libs/scotch_5.1.12b/tgt/m27x29.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m29x31.tgt b/external_libs/scotch_5.1.12b/tgt/m29x31.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m29x31.tgt rename to external_libs/scotch_5.1.12b/tgt/m29x31.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m2x2.tgt b/external_libs/scotch_5.1.12b/tgt/m2x2.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m2x2.tgt rename to external_libs/scotch_5.1.12b/tgt/m2x2.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m2x4x8.tgt b/external_libs/scotch_5.1.12b/tgt/m2x4x8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m2x4x8.tgt rename to external_libs/scotch_5.1.12b/tgt/m2x4x8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m32x32.tgt b/external_libs/scotch_5.1.12b/tgt/m32x32.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m32x32.tgt rename to external_libs/scotch_5.1.12b/tgt/m32x32.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m3x3.tgt b/external_libs/scotch_5.1.12b/tgt/m3x3.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m3x3.tgt rename to external_libs/scotch_5.1.12b/tgt/m3x3.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m4x4.tgt b/external_libs/scotch_5.1.12b/tgt/m4x4.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m4x4.tgt rename to external_libs/scotch_5.1.12b/tgt/m4x4.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m4x8.tgt b/external_libs/scotch_5.1.12b/tgt/m4x8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m4x8.tgt rename to external_libs/scotch_5.1.12b/tgt/m4x8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m5x5.tgt b/external_libs/scotch_5.1.12b/tgt/m5x5.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m5x5.tgt rename to external_libs/scotch_5.1.12b/tgt/m5x5.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m5x7.tgt b/external_libs/scotch_5.1.12b/tgt/m5x7.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m5x7.tgt rename to external_libs/scotch_5.1.12b/tgt/m5x7.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m64x64.tgt b/external_libs/scotch_5.1.12b/tgt/m64x64.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m64x64.tgt rename to external_libs/scotch_5.1.12b/tgt/m64x64.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m8x16.tgt b/external_libs/scotch_5.1.12b/tgt/m8x16.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m8x16.tgt rename to external_libs/scotch_5.1.12b/tgt/m8x16.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m8x8.tgt b/external_libs/scotch_5.1.12b/tgt/m8x8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m8x8.tgt rename to external_libs/scotch_5.1.12b/tgt/m8x8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m9x11.tgt b/external_libs/scotch_5.1.12b/tgt/m9x11.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m9x11.tgt rename to external_libs/scotch_5.1.12b/tgt/m9x11.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/m9x7.tgt b/external_libs/scotch_5.1.12b/tgt/m9x7.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/m9x7.tgt rename to external_libs/scotch_5.1.12b/tgt/m9x7.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p128.tgt b/external_libs/scotch_5.1.12b/tgt/p128.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p128.tgt rename to external_libs/scotch_5.1.12b/tgt/p128.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p16.tgt b/external_libs/scotch_5.1.12b/tgt/p16.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p16.tgt rename to external_libs/scotch_5.1.12b/tgt/p16.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p2.tgt b/external_libs/scotch_5.1.12b/tgt/p2.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p2.tgt rename to external_libs/scotch_5.1.12b/tgt/p2.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p256.tgt b/external_libs/scotch_5.1.12b/tgt/p256.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p256.tgt rename to external_libs/scotch_5.1.12b/tgt/p256.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p32.tgt b/external_libs/scotch_5.1.12b/tgt/p32.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p32.tgt rename to external_libs/scotch_5.1.12b/tgt/p32.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p4.tgt b/external_libs/scotch_5.1.12b/tgt/p4.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p4.tgt rename to external_libs/scotch_5.1.12b/tgt/p4.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p512.tgt b/external_libs/scotch_5.1.12b/tgt/p512.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p512.tgt rename to external_libs/scotch_5.1.12b/tgt/p512.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p64.tgt b/external_libs/scotch_5.1.12b/tgt/p64.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p64.tgt rename to external_libs/scotch_5.1.12b/tgt/p64.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/p8.tgt b/external_libs/scotch_5.1.12b/tgt/p8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/p8.tgt rename to external_libs/scotch_5.1.12b/tgt/p8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/t2x4x8.tgt b/external_libs/scotch_5.1.12b/tgt/t2x4x8.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/t2x4x8.tgt rename to external_libs/scotch_5.1.12b/tgt/t2x4x8.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/t4x4x4.tgt b/external_libs/scotch_5.1.12b/tgt/t4x4x4.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/t4x4x4.tgt rename to external_libs/scotch_5.1.12b/tgt/t4x4x4.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/vcmplt.tgt b/external_libs/scotch_5.1.12b/tgt/vcmplt.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/vcmplt.tgt rename to external_libs/scotch_5.1.12b/tgt/vcmplt.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/vhcub.tgt b/external_libs/scotch_5.1.12b/tgt/vhcub.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/vhcub.tgt rename to external_libs/scotch_5.1.12b/tgt/vhcub.tgt diff --git a/src/meshfem2D/scotch_5.1.12b/tgt/void.tgt b/external_libs/scotch_5.1.12b/tgt/void.tgt similarity index 100% rename from src/meshfem2D/scotch_5.1.12b/tgt/void.tgt rename to external_libs/scotch_5.1.12b/tgt/void.tgt diff --git a/setup/config.h.in b/setup/config.h.in index af32ce49b..10968810c 100644 --- a/setup/config.h.in +++ b/setup/config.h.in @@ -20,10 +20,10 @@ /* Define if err.h */ #undef HAVE_ERR -/* Define to 1 if you have the < inttypes.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H -/* Define to 1 if you have the < memory.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define if you have POSIX threads libraries and header files. */ @@ -32,25 +32,25 @@ /* defined if Scotch is installed */ #undef HAVE_SCOTCH -/* Define to 1 if you have the < stdint.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H -/* Define to 1 if you have the < stdlib.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the < strings.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H -/* Define to 1 if you have the < string.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_STRING_H -/* Define to 1 if you have the < sys/stat.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H -/* Define to 1 if you have the < sys/types.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H -/* Define to 1 if you have the < unistd.h > header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define if xmmintrin.h */ @@ -78,6 +78,24 @@ your system. */ #undef PTHREAD_CREATE_JOINABLE +/* Define GIT branch for package source. */ +#undef SPECFEM2D_GIT_BRANCH + +/* Define date of GIT commit for package source. */ +#undef SPECFEM2D_GIT_DATE + +/* Define GIT hash for package source. */ +#undef SPECFEM2D_GIT_HASH + +/* Define git revision commit for package source. */ +#undef SPECFEM2D_GIT_REVISION + +/* Set to 0 if source is from GIT, 1 otherwise. */ +#undef SPECFEM2D_RELEASE_VERSION + +/* Define SPECFEM2D version */ +#undef SPECFEM2D_VERSION + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff --git a/src/specfem2D/rules.mk b/src/specfem2D/rules.mk index 10814fd0f..160f1dc38 100644 --- a/src/specfem2D/rules.mk +++ b/src/specfem2D/rules.mk @@ -36,8 +36,8 @@ S := ${S_TOP}/src/specfem2D $(specfem2D_OBJECTS): S := ${S_TOP}/src/specfem2D # libjpeg file directory -LIBJPEG = ${S_TOP}/src/specfem2D/libjpeg -$(JPEGLIB_OBJECTS): S := ${S_TOP}/src/specfem2D/libjpeg +S_LIBJPEG = ${S_TOP}/external_libs/libjpeg +$(JPEGLIB_OBJECTS): S := ${S_TOP}/external_libs/libjpeg #### @@ -367,7 +367,7 @@ $O/%.spec.o: $S/%.F90 ${SETUP}/constants.h $O/specfem2D_par.spec_module.o ${F90} ${FCFLAGS_f90} -c -o $@ $< $O/%.cc.o: $S/%.c ${SETUP}/config.h - ${CC} ${CFLAGS} -c -o $@ $< + ${CC} ${CFLAGS} -I${S_LIBJPEG} -c -o $@ $< ### ### CUDA 5 only @@ -381,5 +381,5 @@ $(cuda_specfem2D_DEVICE_OBJ): $(cuda_OBJECTS) ## JPEG library files ## -$O/%.cc_jpeg.o: $S/libjpeg/%.c - ${CC} -c $(CFLAGS) -I${LIBJPEG} -o $@ $< +$O/%.cc_jpeg.o: $(S_LIBJPEG)/%.c + ${CC} -c $(CFLAGS) -I${S_LIBJPEG} -o $@ $< diff --git a/src/specfem2D/write_jpeg_image.c b/src/specfem2D/write_jpeg_image.c index a043b070a..c56faac63 100644 --- a/src/specfem2D/write_jpeg_image.c +++ b/src/specfem2D/write_jpeg_image.c @@ -35,7 +35,7 @@ #include "config.h" #include -#include "libjpeg/jpeglib.h" +#include "jpeglib.h" #include #include