aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* EOS_Omni: update documentationsvnrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@106 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni nuc_eos_cxx: ensure cs2 is 0 or positiverhaas2014-03-13
| | | | | | From: Christian Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@105 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: add code for test case to C++ versionrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@104 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* make new EOS call that returns press and cs2 [and eps if needed]rhaas2014-03-13
| | | | | | From: Christian D. Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@103 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: move actual table data into namespace of its ownrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@102 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: low-level optimizationsrhaas2014-03-13
| | | | | | | | | | | | | | | | | | * use log-rules to transform base 10 logs to natural ones faster and hopefully more accurate * optimize away a division when computing cs2 * optimize bracketing test to (a-a1)*(a-a2)<0 * replace divisions by multiplication by inverse * use CCTK_BUILTIN_EXPECT to indicate likely outcome this should help branch prediction since the compiler can put the the less likely branch into the unfavorable location. * remove superfluous if statements whenever we leave a itmax loop regularly we iterated for too long * explicitly replace x/y by x*1./y From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@101 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: always set anyerr when an error is detectedrhaas2014-03-13
| | | | | | | | consistently abort the EOS call when checkbounds fails From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@100 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: use explicit temporary for loop upper boundrhaas2014-03-13
| | | | | | | | | | not sure if restrict is propagated to called routines or if the compiler must assume that all pointed to variables change when a function is called. From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@99 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: add comments and TODOsrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@98 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: declare global variables restrictrhaas2014-03-13
| | | | | | | | should help if we ever directly access them in an inner loop From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@97 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: use Cactus error reporting functions in readtablerhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@96 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: remove __restrict__ in favor of restrict since Cactus handlesrhaas2014-03-13
| | | | | | | | restrict for us. From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@95 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: remove unnecessary make.code.depsrhaas2014-03-13
| | | | | | | | | Cactus tracks dependencies on include files on its own using calls to the C compiler From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@94 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: use CCTK_ERROR, add STOP after CCTK_ERRORrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@93 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * improved checking of keytemprhaas2014-03-13
| | | | | | From: Christian Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@92 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * new nuc_eos backend (in c++)rhaas2014-03-13
| | | | | | From: Christian Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@91 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: re-add poly_gamma_initialrhaas2014-03-13
| | | | | | From: Roland Haas <rhaas@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@90 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * Major bug fix in EOS_Omni/nuc_eos. In the code (before the fix),rhaas2014-03-13
| | | | | | | | | | | | | offending specific internal energies where limited and the EOS returned seemingly fine, but thermodynamically inconsistent data. This has been fixed. This fix also makes isolated microphysical NS simulations not work anymore. Why this is the case, we are still investigating From: Christian Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@89 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* add barotropic tabular EOS functionality for initial data using eosDriver.py ↵rhaas2014-03-13
| | | | | | | | output From: Christian Ott <cott@tapir.caltech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@88 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * remove OMP pragmas from most routines, because they HEADmastercott2013-06-13
| | | | | | | | | | | | | slow down pointwise calls * make a copy of the press routine, call it OMP, add interface entry; use this routine for GF-wide calls. * uglyness ensues git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@84 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add OMP pragmas to EOSOmni routinescott2013-06-08
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@83 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* Replace stop statements by calls to CCTK_ERROReschnett2013-03-28
| | | | | | | | | Stop statements are deprecated in Fortran, and can only take integer arguments (not strings). The IBM compiler insists on this. Calling CCTK_ERROR is a simple work-around in Cactus. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@80 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * fix an issue with coldEOS+gamma-law (thermal pressure was not added)cott2013-03-23
| | | | | | | | * improve a multi-var EOS call for dpdrho and dpdeps git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@79 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * extrapolate to negative (!) temperatures, so that we can use thiscott2013-03-23
| | | | | | | with the new Con2PrimHot treatment in GRHydro. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@78 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * Low-density polytrope for tabulated cold EOS. This cott2013-03-23
| | | | | | | part of the commit was forgotten. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@77 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add possibility to stich on a polytrope to the lower endcott2013-03-15
| | | | | | | | of a tabulated cold EOS git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@76 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add missing source filecott2013-02-24
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@75 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add support for cold tabulated EOS (P=P(rho)) thatcott2013-02-23
| | | | | | | | can be supplemented with a thermal gamma law git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@74 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* remove poly_gamma_inirhaas2013-02-11
| | | | | | | | | | | EOS_Omni used this to compute (initially) conversion factors from code (assumed to e G=c=M_sun=1) to cgs units. It then goes back and forth between these units even for polytropic and gamma law eos. This is very confusing since poly_gamma_ini since poly_gamma_ini must mast poly_gamma and gl_gamma for a "usual" run with a Gamma law eos. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@73 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * update unit conversions based on new conversion factorscott2012-12-29
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@72 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add a python script that computes cgs->M_sun=c=G=1 units cott2012-12-29
| | | | | | | | conversion factors (and their inverses) based on NIST data git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@71 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * improve solution for density based on pressure, temperature, Y_e.cott2012-12-22
| | | | | | | | | The new implementation is robust, but slow and should only be used at initial data (which is generally the case) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@70 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* remove superfluous F90FLAGS used for HDF5 in Fortranrhaas2012-12-05
| | | | | | | | EOS_Omni no longer uses the Fortran HDF5 interfaces, instead readtable.c is using the C interface. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@69 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* remove unused variablesknarf2012-11-23
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@68 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: use H5Fis_hdf5, protect assumed type sizesrhaas2012-08-10
| | | | | | From: Roland Haas <roland.haas@physics.gatech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@66 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* add option read_table_on_single_process to have a named processorrhaas2012-08-09
| | | | | | | | read the full table and MPI_Bcast it to the other processors From: Roland Haas <roland.haas@physics.gatech.edu> git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@65 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* make more parameters steerablerhaas2012-08-01
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@64 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: add table reader testrhaas2012-06-22
| | | | | | | | | | | | This adds a test (plus sample hdf5 table) using a small routine EOS_OMNI_dumptable to output the read in data as ASCII into a user selected file. Code and table kindly provided by Evan O'Connor. Small changes afterwards by Roland Haas. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@63 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* EOS_Omni: avoid allocting temporary memory twicerhaas2012-06-04
| | | | | | | | instead of storing a copy of the data in the Fortran module store Fortran pointers. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@62 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * small change (will not break anything): change the parametercott2012-05-23
| | | | | | | | for the file name of the nuclear EOS table to STEERABLE=ALWAYS (was not steerable) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@60 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * close all HDF5 objectsrhaas2012-05-17
| | | | | | | | * check H5?close() return code * make file-local functions static git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@59 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* use version 1.6 of the HDF5 API, since this is the only place within the ET ↵knarf2012-04-16
| | | | | | which explicitely used the 1.8 API which just tripped one of my installations. It also doesn't need the 1.8 API, which is why it now explicitely requests version 1.6 git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@58 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add aliased routine to compute deps/drho|p and deps/dp|rhocott2012-03-08
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@57 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* fix scheduling of table readercott2012-02-06
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@56 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * add banner informing user that EOS table is being readcott2012-01-31
| | | | | | | | | * fix scheduling issue (reading the table was not scheduled in global mode) * re-add option of turning off energy shift git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@55 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* Let EOS_Omni read HDF5 EOSs using the C-API, since building the fortran ↵knarf2011-11-13
| | | | | | | | | | interface is usually disabled, and conflicts with the parallel API as well. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@54 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* documentation.tex: Add braces for htlatexhinder2011-10-25
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@51 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* documentation.tex: Move definitions under START CACTUS THORNGUIDE linehinder2011-10-19
| | | | | | Otherwise the thornguide fails to build git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@49 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* * fix dpdrho issuecott2011-06-11
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@48 8e189c6b-2ab8-4400-aa02-70a9cfce18b9
* Some grammar correctionseschnett2011-04-20
| | | | git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEOS/EOS_Omni/trunk@46 8e189c6b-2ab8-4400-aa02-70a9cfce18b9