From jshalf at lbl.gov Tue Apr 3 20:09:34 2007 From: jshalf at lbl.gov (John Shalf (jshalf)) Date: Wed, 4 Apr 2007 01:09:34 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/make config.guess config.sub" Message-ID: <20070404010934.32917817D@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/lib/make In directory asylum.cct.lsu.edu:/tmp/cvs-serv21797 Modified Files: config.guess config.sub Log Message: Fixed config.guess and config.sub for Cray xt3 and xt4 targets. From jshalf at lbl.gov Tue Apr 3 20:11:35 2007 From: jshalf at lbl.gov (John Shalf (jshalf)) Date: Wed, 4 Apr 2007 01:11:35 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/make/known-architectures xt3-cray-catamount xt4-cray-catamount" Message-ID: <20070404011135.C7B81817D@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/lib/make/known-architectures In directory asylum.cct.lsu.edu:/tmp/cvs-serv21880 Added Files: xt3-cray-catamount xt4-cray-catamount Log Message: added known architectures for xt3 and xt4. still fixing some some xt4/pgi compiler issues. From jthorn at aei.mpg.de Sun Apr 8 14:00:20 2007 From: jthorn at aei.mpg.de (Jonathan Thornburg (jthorn)) Date: Sun, 8 Apr 2007 19:00:20 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/make/known-architectures openbsd4.0" Message-ID: <20070408190020.136ED817D@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/lib/make/known-architectures In directory asylum.cct.lsu.edu:/tmp/cvs-serv31899 Added Files: openbsd4.0 Log Message: += support for OpenBSD 4.0 From schnetter at cct.lsu.edu Wed Apr 18 13:10:55 2007 From: schnetter at cct.lsu.edu (Erik Schnetter (schnetter)) Date: Wed, 18 Apr 2007 18:10:55 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/lib/sbin CST" Message-ID: <20070418181055.9F635817D@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/lib/sbin In directory asylum.cct.lsu.edu:/tmp/cvs-serv883 Modified Files: CST Log Message: Use "cctk_unlikely_dummy_name" instead of "dummy" when sorting thorns. From schnetter at cct.lsu.edu Fri Apr 27 14:41:24 2007 From: schnetter at cct.lsu.edu (Erik Schnetter (schnetter)) Date: Fri, 27 Apr 2007 19:41:24 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/src/include cctk_Types.h cctk_Complex.h" Message-ID: <20070427194124.9565C8181@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/src/include In directory asylum.cct.lsu.edu:/tmp/cvs-serv14436/include Modified Files: cctk_Types.h cctk_Complex.h Log Message: This patch makes complex arithmetic in C and C++ more efficient, and makes it much more convenient for C++, expecially when templates are used. The flesh functions for complex arithmetic are defined (not only declared) by including Complex.c from the header file cctk_Complex.h. They are declared "static inline", so the the compiler can inline them, but does not have to create an out-of-line copy for every source file. Complex.c is also compiled stand-alone without the "static inline" prefix, so that out-of-line copies exist as well. Add some new complex arithmetic functions, e.g. ComplexNeg to change the sign. Make some complex arithmetic functions more efficient by using algorithms from glibc. These algorithms are LGPL. They should be faster and/or more accurate than the existing implementations. For C++, define the usual arithmetic operators (+-*/ etc.) as inline functions calling the corresponding complex arithmetic functions. This makes it possible to use complex numbers in the same way as real numbers, which makes it possible to instantiate templates for both CCTK_REAL and CCTK_COMPLEX. This leads to much code reduction in Carpet. The patch also appends a type postfix to the names of math functions called in the inlined routines: 'f' for HAVE_CCTK_REAL4, nothing for HAVE_CCTK_REAL8, and 'l' for HAVE_CCTK_REAL16. This avoids compiler warnings about conversions from "double" to "float" which may lose significant bits. From schnetter at cct.lsu.edu Fri Apr 27 14:41:24 2007 From: schnetter at cct.lsu.edu (Erik Schnetter (schnetter)) Date: Fri, 27 Apr 2007 19:41:24 +0000 Subject: [Flesh-cvs] DEVELOPMENT CVS "Cactus/src/main Complex.c" Message-ID: <20070427194124.6CC1C817D@asylum.cct.lsu.edu> Update of /cactusdevcvs/Cactus/src/main In directory asylum.cct.lsu.edu:/tmp/cvs-serv14436/main Modified Files: Complex.c Log Message: This patch makes complex arithmetic in C and C++ more efficient, and makes it much more convenient for C++, expecially when templates are used. The flesh functions for complex arithmetic are defined (not only declared) by including Complex.c from the header file cctk_Complex.h. They are declared "static inline", so the the compiler can inline them, but does not have to create an out-of-line copy for every source file. Complex.c is also compiled stand-alone without the "static inline" prefix, so that out-of-line copies exist as well. Add some new complex arithmetic functions, e.g. ComplexNeg to change the sign. Make some complex arithmetic functions more efficient by using algorithms from glibc. These algorithms are LGPL. They should be faster and/or more accurate than the existing implementations. For C++, define the usual arithmetic operators (+-*/ etc.) as inline functions calling the corresponding complex arithmetic functions. This makes it possible to use complex numbers in the same way as real numbers, which makes it possible to instantiate templates for both CCTK_REAL and CCTK_COMPLEX. This leads to much code reduction in Carpet. The patch also appends a type postfix to the names of math functions called in the inlined routines: 'f' for HAVE_CCTK_REAL4, nothing for HAVE_CCTK_REAL8, and 'l' for HAVE_CCTK_REAL16. This avoids compiler warnings about conversions from "double" to "float" which may lose significant bits.