From 6e6f96f926c32b4cfe1998fe950ce5f6ca70381c Mon Sep 17 00:00:00 2001
From: Pratheek Shanthraj
Date: Wed, 25 Mar 2015 16:16:01 +0000
Subject: [PATCH] updated spectral example to show current way of starting a
parallel simulation
---
examples/SpectralMethod/Makefile | 14 ++++++++++++++
examples/SpectralMethod/example_run.py | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 examples/SpectralMethod/Makefile
diff --git a/examples/SpectralMethod/Makefile b/examples/SpectralMethod/Makefile
new file mode 100644
index 000000000..08f4dded4
--- /dev/null
+++ b/examples/SpectralMethod/Makefile
@@ -0,0 +1,14 @@
+
+include ${PETSC_DIR}/lib/petsc-conf/variables
+include ${PETSC_DIR}/lib/petsc-conf/rules
+
+
+run16x16x16:
+ -@${MPIEXEC} -n 2 DAMASK_spectral -l tensionX.load -g 20grains16x16x16.geom
+
+run32x32x32:
+ -@${MPIEXEC} -n 4 DAMASK_spectral -l tensionX.load -g 20grains32x32x32.geom
+
+run64x64x64:
+ -@${MPIEXEC} -n 8 DAMASK_spectral -l tensionX.load -g 20grains64x64x64.geom
+
diff --git a/examples/SpectralMethod/example_run.py b/examples/SpectralMethod/example_run.py
index b1abd6fbc..bafc79d11 100755
--- a/examples/SpectralMethod/example_run.py
+++ b/examples/SpectralMethod/example_run.py
@@ -2,4 +2,4 @@
# -*- coding: UTF-8 no BOM -*-
from subprocess import call
-call('DAMASK_spectral -l tensionX.load -g 20grains16x16x16.geom', shell=True)
\ No newline at end of file
+call('make run16x16x16', shell=True)
\ No newline at end of file