From 717abb8ce8198c5b86a4f10a1a26230be5ca9a93 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 9 Dec 2015 13:02:35 +0100 Subject: compilerswitches.inc neu, in .gitignore und per updateunit verwendet --- .gitignore | 1 + Physikunit.pas | 13 +---- Plasmapropagation.lpi | 18 +++++- Plasmapropagation.lpr | 5 +- Plasmapropagation.lps | 156 ++++++++++++++++++++++++++------------------------ 5 files changed, 104 insertions(+), 89 deletions(-) diff --git a/.gitignore b/.gitignore index 5b1de54..d128547 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ lib epost *~ Log* +Compilerswitches.inc diff --git a/Physikunit.pas b/Physikunit.pas index bbd63f1..f7ab68f 100644 --- a/Physikunit.pas +++ b/Physikunit.pas @@ -6,18 +6,7 @@ unit Physikunit; {$ERROR This program can be compiled only on/for Unix/Linux based systems.} {$ENDIF} -{$MACRO on} - -// nach einer LiKo negative Dichten entfernen: -{$DEFINE DichteNichtnegativieren:=perSkalieren} // insgesamt runter skalieren um negative Dichten aufzufüllen -{ $DEFINE DichteNichtnegativieren:=perEinzelklau} // negative Dichten aus zufälligen Phasenraumpunkten auffüllen -{ $DEFINE dnZwischenRKSchritten} // nach jeder LiKo Dichten nicht negativ machen - -{ $DEFINE negativeDichteueberwachung} // prüfen, ob die Dichten negativ werden - -{ $DEFINE exzessiveArrayBereichsTests} // zeitaufwändige(!) Array-Bereichstest für fftw - -{ $DEFINE laengenSindZweierpotenzen} // Laengen auf Zweierpotenzen runden (ggf. günstiger für fft) +{$INCLUDE Compilerswitches.inc} interface diff --git a/Plasmapropagation.lpi b/Plasmapropagation.lpi index d9909e2..1d0cd6e 100644 --- a/Plasmapropagation.lpi +++ b/Plasmapropagation.lpi @@ -33,7 +33,7 @@ - + @@ -58,6 +58,22 @@ + + + + + + + + + + + + + + + + diff --git a/Plasmapropagation.lpr b/Plasmapropagation.lpr index 478901f..0e59243 100644 --- a/Plasmapropagation.lpr +++ b/Plasmapropagation.lpr @@ -2,13 +2,16 @@ program Plasmapropagation; {$mode objfpc}{$H+} +{$INCLUDE Compilerswitches.inc} + uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes, SysUtils, CustApp, { you can add units after this } - math, Physikunit, protokollunit, lowlevelunit, fftw; + math, Physikunit, protokollunit, lowlevelunit, fftw, + compilerswitchupdateunit; type diff --git a/Plasmapropagation.lps b/Plasmapropagation.lps index cdb7b0d..f84ba69 100644 --- a/Plasmapropagation.lps +++ b/Plasmapropagation.lps @@ -3,23 +3,21 @@ - + - - + + - - - - - + + + @@ -33,7 +31,7 @@ - + @@ -44,7 +42,7 @@ - + @@ -52,11 +50,11 @@ - + - + @@ -72,19 +70,18 @@ - + - + - - - - + + + @@ -167,126 +164,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - - + - + - - + - + - + - + - + - + - + + - + - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3-54-g00ecf