4.3. Spectral solver


Preamble

This manual describes the installation on a Unix system. For running a simulation after the installation, please refer to the spectral solver usage page.


Prerequisites

  • Fortran compiler supporting Fortran 2008 standard
  • PETSc including FFTW
  • DAMASK/CONFIG reflecting your system settings
  • system variables set (done by calling >source DAMASK/DAMASK_env.(sh/csh/zsh); IMPORTANT note: as you have not yet compiled the spectral solver at this point, the warnings about "Spectral Solver Not found!" and "Post Processing Not found!" are normal; follow below instructions, which will fix this behavior!)


parent_gray

Build from source and install

> cd DAMASK
> make spectral [switch=value] [switch=value] [...]
> make install

General compiler switches

You can control your compilation with the following switches (default in bold):

  • OPTIMIZATION: OFF, DEFENSIVE, AGGRESSIVE
  • OPENMP: TRUE, FALSE
  • BUILD_TYPE: RELEASE, SYNTAXONLY, DEBUG (future option)

The meaning of the OPTIMIZATION switches are as following:

  • OFF: -O0
  • DEFENSIVE: -O2
  • AGGRESSIVE: -O3

Choose AGGRESSIVE only if you do not encounter any problems such as inconsistent solver results. As far as we know, DEFENSIVE is always safe and already improves performance significantly compared to OFF. Compilation with OPTIMIZATION = OFF is only recommended when compile time is a premium.

Advanced make options

The advanced make options allow to specify in combination with the general compiler switches the complete compile command. The following commands are defined in the Makefile:

  • BUILDCMD_PRE = arbitrary prefix
  • BUILDCMD_POST = arbitrary suffix

If the compiling options are changed, remove all previously compiled objects with
> cd DAMASK/code/
> make clean
Topic revision: r35 - 07 Nov 2017, PhilipEisenlohr


  • News
21 Jan 2019
DAMASK overview paper finally published with full citation information available
01 Dec 2018
DAMASK overview paper now online
17 Sep 2018
CMCn2018 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
22 May 2018
Release of version v2.0.2
01 Sep 2016
CMCn2016 & DAMASK user meeting to be hosted at Max-Planck-Institut für Eisenforschung
25 Jul 2016
Release of version v2.0.1
08 Mar 2016
Release of version v2.0.0
22 Feb 2016
New webserver up and running
09 Feb 2016
Migrated code repository from Subversion to GitLab
17 Dec 2014
Release of revision 3813
14 May 2014
Release of revision 3108
02 Apr 2014
Release of revision 3062
16 Oct 2013
Release of revision 2689
15 Jul 2013
Release of revision 2555
15 Feb 2013
Release of revision 2174
13 Feb 2013
Doxygen documentation
16 Dec 2012
Powered by MathJax rendering
23 Nov 2012
Release of revision 1955
15 Nov 2012
Release of revision 1924
01 Nov 2012
Updated sidebar
30 Oct 2012
Significant website updates and content extensions


This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection