| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
is actually 'restrict'.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4211 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
| |
convert the macro value to either 0 or 1 before returning it.
Otherwise things fail badly if the macro is defined but empty: The
returned value is then not an integer, and cpp.pl would keep both the
#if and the #else branch of an if statement.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4205 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
testsuites.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4203 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
capabilities. This prevents name clashes with e.g. system header
files.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4201 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
(e.g. if a thorn's configuration.ccl has changed).
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4200 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
configuration bindings.
When reading the configuration settings from the output of the
configuration scripts (that provide capabilities), new lines were lost
in certain circumstances. This lead to makefile fragments like
PETSC_DIR = /usr/local/apps/petscPETSC_ARCH = linux
which are obviously incorrect (since these should be two lines, not
one), although this does not lead to errors or warnings.
This patch makes sure that all configuration settings have newline
characters appended or blanks prepended as they are concatenated into
the internal database (ConfigScriptParser.pl). When the database is
read out, the strings can just be printed to the file
(CreateConfigurationBindings.pl).
While doing this, this patch also removes some superfluous blanks and
newline characters from the output of the configuration settings.
This patch also removes a perl idiosyncracy when appending newline
characters to a string. It changes code like "#endif" . "\n" to
"#endif\n".
Tested on Mac OS and Red Hat Linux.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4199 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
was left untouched if the new content was empty. This meant that
empty files were never generated, and existing non-empty files were
never made empty.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4198 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4193 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4192 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4191 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4189 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
$MPICH_DIR/bin/tdevice. Unfortunately the tdevice command is broken, even for a
'ch_shmem' device it reports 'ch_p4'.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4187 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4185 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
${F90_OPTIMISE_FLAGS='$(F77_OPTIMISE_FLAGS)
in the PGI configuration section in lib/make/known-architectures/linux
causes trouble. It means "use as F90 flags whatever the F77 flags
will be set to". This doesn't work together with the a recent patch
to configure.in, which says "use the same flags for F77 as for F90".
Overall we now have a circular definition.
As a quick fix, I replace the above line with the value of
F77_OPTIMISE_FLAGS. Since there is no other code which sets a shell
variable (the left hand side) to a Makefile expression (the right hand
side), it may have been an oversight anyway -- probably the author of
the above line wanted to write ${F77_OPTIMISE_FLAGS} instead anyway.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4184 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
overrides F77FLAGS with F90FLAGS. This patch also sets
F77_DEBUG_FLAGS and F77_OPTIMISE_FLAGS from the corresponding F90 flag
settings.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4183 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
| |
an if clause so it is only tested if CCTK_NEED_X is true.
The PETSc extras file has been updated to set this flag.
This will be reverted when the extras stuff is removed and
thorns are using the thorns in CactusExternal to detect things.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4182 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
only read the file if it its size equals the length of the rdata string.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4181 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
Similar to Windows, which is already handled as special case, it uses
a different extension for dynamic libraries, namely ".dylib". I test
for MacOS by grepping the output of uname for "^Darwin". This patch
is necessary to make Cactus configure with HDF5 on my notebook, where
I installed HDF5 via fink in the standard way.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4180 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the last macro argument is empty, it thinks there is one argument too
few. That is, the following code
#define M2(a,b)
M2(x,)
leads to an error message stating that M2 was used with only a single
argument. This is wrong, as it is called with two arguments, where
the second argument is the empty string. After reading the GNU cpp
manual, I think that the ANSI standard requires that empty arguments
must be handled.
The problem is that the routine SplitArgs that decodes the macro
arguments cannot distinguish between an empty last argument and no
argument, as both are represented by an empty string. I change the
routine so that an empty string always means "empty argument". This
means that SplitArgs cannot be called any more if there are no
arguments -- but this does not matter. I place a corresponding if
statement around the call.
Empty macro arguments may cause problems on some system. A later
patch will produce warnings or errors for them.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4179 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
You should configure with
HOST_MACHINE=ppc-ibm-bgl
and set the compilers as necessary, e.g.
CC=blrts_xlc
CXX=blrts_xlC
F90=blrts_xlf90
and MPI with
MPI=NATIVE
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4177 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
Should configure Cactus with something like
HOST_MACHINE=ppc-ibm-bgl
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4176 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4175 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
via a thorn and a configuration script.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4174 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
but are included into the main configure script, so please don't
use return in them.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4169 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4168 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4167 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4165 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
compilers --- this caused problems on an SP system and also needs to
ensure that F90 and F77 naming schemes are the same.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4164 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4156 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4155 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
token concatenation.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4153 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4152 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
support for the datatype CCTK_REAL16. This is necessary because
Cactus only detects whether C supports this datatype, and then assumes
that Fortran behaves the same.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4149 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
configuration is created, not when it is built. This allows make to
examine this directory for dependencies. (Make refuses to examine
non-existing directories.)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4148 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
| |
array shapes. They used to have a digit appended to an existing group
name, which can clash with another existing group name. The new name
has the digit in front, which cannot be a legal group name.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4147 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
declare and initialise local variables. They also add the necessary
magic to prevent compiler warnings about unused variables.
If the compiler supports __attribute__((unused)), then use this.
Otherwise, use the existing fallback of taking the variable's
address. In Fortran, use the variable's kind as fallback.
Use these macros in autogenerated code and in "cctk.h".
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4146 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
override it. Override only settings that have been detected
automatically.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4145 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
| |
of only applying a few regexps. This should be a big step towards
correctness.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4143 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4141 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4140 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4139 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4138 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4137 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4136 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4133 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
| |
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4129 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
print "$thorn SHARES from implementation $friend - no such implementation\n";
$CST_errors++;
into a proper CST_error() message so that it is clearly visible as a CST error.
This closes PR Cactus/1967: "Does not detect non-existing implementations
in "SHARES:" declaration".
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4128 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
|
|
|
|
| |
integer parameter ranges in parse_param_ccl():
The perl regexp was checking for somthing like ( number : ( number
whereas we really want (and this fix changes the code to test for)
something like ( number : number )
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4121 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
This closes PR CactusEinstein/1962: "IDAxiBrillBH: CST errors (Invalid range)".
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4120 17b73243-c579-4c4c-a9d2-2d5706c11dac
|
|
|
|
|
|
|
| |
are also given as integers.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4118 17b73243-c579-4c4c-a9d2-2d5706c11dac
|