Directory Core/DataArchive/

Total Files:
3
Deleted Files:
0
Lines of Code:
2218

[root]/Core/DataArchive

Lines of Code

Core/DataArchive/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 67 (100.0%) 1627 (100.0%) 24.2
harman 34 (50.7%) 863 (53.0%) 25.3
dav 12 (17.9%) 514 (31.6%) 42.8
jas 11 (16.4%) 155 (9.5%) 14.0
ahumphrey 8 (11.9%) 54 (3.3%) 6.7
allen 2 (3.0%) 41 (2.5%) 20.5

Most Recent Commits

dav 2016-12-19 17:53 Rev.: 56124

Alphabetize #includes. Better logic for checking for 'pidx' tag. Fix variable name ('error') to be accurate.

0 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (changed)
dav 2016-12-19 17:21 Rev.: 56121

Whitespace/readability fix.

15 lines of code changed in 3 files:

  • Core/DataArchive: DataArchive.cc (+1 -1), DataArchive.h (+14 -15)
allen 2016-11-10 10:17 Rev.: 55966

removed error message because it did not solve the issue

13 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+13 -10)
allen 2016-11-07 17:17 Rev.: 55955

added exception when data is not found

28 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+28 -13)
harman 2016-11-02 10:12 Rev.: 55933

Include the level index in VARIABLE NOT FOUND exception.

10 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+10 -3)
dav 2016-10-10 15:29 Rev.: 55853


Add in the Wasatch 3P NSCBC library build/check in configure system. If you are using Wasatch and pointing
to old Watach 3Ps, this will cause your build to break... you will need to update your W3P to include
the NSCBC library.

M build_scripts/build_wasatch_3p.sh

- Added in Tony Saad's build commands for NSCBC library. Added hooks to allow configure to
specify whether to build it or not.

M configVars.mk.in

- Added in HAVE_NSCBC and NSCBC_INCLUDE flags.

M configure.ac
M configure

- Order Wasatch 3P lines to always be SpatialOps, ExprLib, TabProps, RadProps, NSCBC, POKITT.
- Add in verification of NSCBC files and NSCBC flags.
- Re-ordered the Pokitt test to be after the NSCBC test (just to keep using the same order when looking W3P libs).

M CCA/Components/SimulationController/AMRSimulationController.cc

- Few layout cleanups for easier reading.

M CCA/Components/SimulationController/SimulationController.cc

- Rename 't' to 'time'. Please don't use one letter variable names.
- Commented out "stdDeviation()" function as it isn't used and causes compiler warnings.

M Core/DataArchive/DataArchive.cc

- Fix error message when looking for <Data> to accurately report the name of the file that was searched.


4 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+4 -1)
dav 2016-10-03 14:53 Rev.: 55828

This commit allows for dumping the grid.xml file in binary. It is turned off by default at this point.
Additionally, the <Data> section is split out of the grid.xml file and put into its own file (XML/ASCII) -
but only when using the XML_TEXTWRITER or the binary output.

If the grid is output in binary, you can use the "puda/grid_reader.cc" stand alone program to
display it (in XML) so you can visually see what is in the file. It is important to note that
when outputing in XML, we can (and do) ignore (not write) tags that are meaningless (in certain situations)
or have a default when they do not exist in the file. However, in the binary version, we have to write them all
out. I have tested against our local regression tests, but it is possible that there are some
seldomly used flags that are not yet written to the binary grid.xml file that we will need to take
care of adding in if/when they come up.

M CCA/Components/DataArchiver/DataArchiver.h
M CCA/Components/DataArchiver/DataArchiver.cc

- Finished implementing the writeGridBinary() function.
- Drop out of writeto_xml_files() immediately if not an I/O timestep. Previously it didn't
actually do anything, but it was not clear that it was not doing anything.
- Currently, to turn on binary output of grid.xml, you need to edit the code and
uncomment the writeGridBinary() call (and comment out the writeGridOriginal()).
Hopefully soon this will just be the default so we can get rid of the multiple
cases and extra code.
- Create a shared writeDataTextWriter() so that both the XML_TEXTWRITER and binary version
can share the code to dump the data.xml file.
- procOnLevel is a boolean array, so treat it as such.
- Swat some endls that take a lot more typing then just a \n.
- White space for better readability, update some formatting for consistency.

M CCA/Components/SimulationController/AMRSimulationController.cc

- Indentation is your friend.
- Remove tabs, line up code, white space.

M CCA/Components/SimulationController/SimulationController.cc

- Move local stdDeviation() routine to just above where it is used. Make static.
- Swat endls.
- White space for readability.
- Remove end of lines from exception messages where they are not needed.

M Core/DataArchive/DataArchive.h
M Core/DataArchive/DataArchive.cc

- Alphabetize #includes.
- Add a constant magic number to designate binary grid.xml files. Used by the code to verify
which version (xml vs binary) is being read. GRID_MAGIC_NUMBER
- Remove the "ref_cnt" and "lock" class variables as it appears they aren't used, and they don't
do anything. I believe they are left over vestiges of days long past.
- Remove "d_grid_path_and_filename" as all we need is the path and that is already stored.
- White space and consistent indentation.
- Added code to read in the new binary grid.xml files.
- Removed a huge "#if 0" section. Most likely left over from a previous version of UDA reading.
It would be good to converge on a single method and only have one set of code...

M Core/Grid/Grid.h
M Core/Grid/Grid.cc

- Add in readLevelsFromFileBinary() code to support DataArchive reading of new binary grid.xml.
As you can see from the (short) size of this routine, reading the binary version is much
simpler (especially compared to the streaming (non-DOM based) xml parsing that we also
currently do).
- Make use of longer lines as we non-longer are limites to 80 columns - where it makes sense.
- Add "{" to single line if statements as per coding standard.
- Remove some debug statements.
- Line up code for easier reading.

M Core/Grid/Level.cc

- White space / line up code for easier reading.

M Core/Grid/SimulationTime.cc

- White space / line up code for easier reading.
- Removed the deprecated "<max_iterations>" check. It hasn't been used in a long time.

M StandAlone/tools/puda/grid_reader.cc

- New, stand alone program to read a binary grid.xml file and display a human readable XML version.
- If you update this code, make sure it matches the writing in DataArchiver and the reading in
DataArchive.

M StandAlone/tools/puda/sub.mk

- Build grid_reader.


127 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+109 -155), DataArchive.h (+18 -23)
dav 2016-09-19 17:47 Rev.: 55766

The main changes in this commit only effect a simulation when <outputNthProc> is
set (> 1) in the .ups file.

This commit allows for PIDX output on every process for a time step
output, while using every Nth process (if so specified) for UDA
checkpoint output. Eventually the need for this Nth Proc changing
hack (and Nth proc output itself) should go away when PIDX fully takes
over I/O.

Note, when using "Nth Process Output", both a checkpoint and a time step save
CANNOT occur on the same time step. Therefore the time step output is postponed
for one time step.

On a slightly different note, we use the term proc badly... we should use process,
or perhaps better yet, rank... as proc is usually taken to mean "processor", but
in MPI's case, means process - and the term MPI uses for process is rank.

D CCA/Ports/LoadBalancer.cc
D CCA/Ports/LoadBalancer.h
A + CCA/Ports/LoadBalancerPort.cc
A + CCA/Ports/LoadBalancerPort.h

- Renamed from LoadBalancer to LoadBalancerPort to avoid confusion with the LoadBalancer itself.
- Added "setNthProc()" so that the SimulationController can change the value as needed.

M CCA/Components/DataArchiver/DataArchiver.h
M CCA/Components/DataArchiver/DataArchiver.cc

- Added postponeNextOutputTimestep(). This pushes off the output of a time step by one
time step. (This occurs if using Nth Process Output and a checkpoint and a time step
where to occur on the same time step.)
- Added savingAsPIDX() boolean query function so that the SimulationController
can avoid doing all of this hack when we are not using PIDX.
- Removed "getCurrentTimestep()" and "getCurrentTime()", as, per the documentation on them,
they should not be used anyway; you should get this info from the shared state. Note,
the DataArchiver name (getCurrentTime()) is different from the shared state name
(getElapsedTime()) which was also confusing.
- Pass const string parameters by reference.
- White space cleanup / alignments.

- If the input file has no <save> labels, but specifies an output interval, throw an exception.
- If the 'logname' is not available when running a simulation, put 'unknown' instead of ignoring.
Should probably find a better fix then 'unknown', but that will have to wait for another day.
- Swat some evil endls. :)
- Don't calculate 'currsecs' on every process, just on rank 0.
- Removed all calls to usingMPI() as Alan deprecated it in a recent commit.
- procOnLevel is (I hope) a boolean array... so declare and use it as such.
- Don't name a variable with a single letter. n -> var_cnt

- Did I mention white space cleanups... Please for the sake of older eyes...

M CCA/Components/ICE/ICE.cc
M CCA/Components/Models/FluidsBased/AdiabaticTable.cc
M CCA/Components/Models/FluidsBased/NonAdiabaticTable.cc
M CCA/Components/Models/FluidsBased/NonAdiabaticTable.h
M CCA/Components/Models/FluidsBased/SimpleRxn.cc
M CCA/Components/Models/FluidsBased/SimpleRxn.h
M CCA/Components/Models/Radiation/RMCRT/Radiometer.cc
M CCA/Components/OnTheFlyAnalysis/MinMax.cc
M CCA/Components/OnTheFlyAnalysis/1stLawThermo.cc
M CCA/Components/OnTheFlyAnalysis/containerExtract.cc
M CCA/Components/OnTheFlyAnalysis/lineExtract.cc
M CCA/Components/OnTheFlyAnalysis/momentumAnalysis.cc
M CCA/Components/OnTheFlyAnalysis/particleExtract.cc
M CCA/Components/OnTheFlyAnalysis/planeExtract.cc
M CCA/Components/OnTheFlyAnalysis/statistics.cc

- Use shared state getElapsedTime()
- Naming conventions: sharedState -> d_sharedState (to match other class vars in file).
- White space / alignments / etc.

M CCA/Components/LoadBalancers/CostProfiler.cc

- White space separation of #includes between CCA and Core

M CCA/Components/Arches/PressureSolverV2.cc
M CCA/Components/Arches/Radiation/RadPetscSolver.cc
M CCA/Components/Examples/Poisson2.cc
M CCA/Components/Examples/DOSweep.cc
M CCA/Components/Examples/RMCRT_Test.cc
M CCA/Components/Examples/RegridderTest.cc
M CCA/Components/Examples/SolverTest1.cc
M CCA/Components/FVM/ElectrostaticSolve.cc
M CCA/Components/ICE/impAMRICE.cc
M CCA/Components/ICE/impICE.cc
M CCA/Components/LoadBalancers/CostProfiler.h
M CCA/Components/LoadBalancers/DynamicLoadBalancer.cc
M CCA/Components/LoadBalancers/ParticleLoadBalancer.cc
M CCA/Components/MPM/AMRMPM.cc
M CCA/Components/MPM/ImpMPM.cc
M CCA/Components/MPM/SerialMPM.cc
M CCA/Components/Parent/Switcher.cc
M CCA/Components/ReduceUda/UdaReducer.h
M CCA/Components/ReduceUda/UdaReducer.cc
M CCA/Components/Regridder/RegridderCommon.h
M CCA/Components/Regridder/RegridderCommon.cc
M CCA/Components/Regridder/SingleLevelRegridder.cc

- LoadBalancer -> LoadBalancerPort
- White space cleanup / alignments.

M CCA/Components/LoadBalancers/LoadBalancerCommon.h
M CCA/Components/LoadBalancers/LoadBalancerCommon.cc

- LoadBalancer -> LoadBalancerPort.
- Add setNthRank().
- getOutputProc() -> getOutputRank().
- Whitespace / alignment.
- Fix comment to indicate getOutputProc is returning an MPI rank.

M CCA/Components/LoadBalancers/ProfileDriver.h
M CCA/Components/LoadBalancers/ProfileDriver.cc
M CCA/Components/Regridder/TiledRegridder.cc
M CCA/Components/Schedulers/MPIScheduler.cc
M CCA/Components/Schedulers/SchedulerCommon.h
M CCA/Components/Schedulers/SchedulerCommon.cc

- Cosmetics: Whitespace / alignment / coding standards / alphabetize #includes / etc.
- LoadBalancer -> LoadBalancerPort

M CCA/Components/Schedulers/OnDemandDataWarehouse.h
M CCA/Components/Schedulers/OnDemandDataWarehouse.cc
M CCA/Components/Schedulers/Relocate.h
M CCA/Components/Schedulers/Relocate.cc

- Name class variables according to naming convention. (eg: aborted -> d_aborted).
- Be consistent with naming convention of class variables in same file.
- LoadBalancer -> LoadBalancerPort.

M CCA/Components/Schedulers/TaskGraph.h
M CCA/Components/Schedulers/TaskGraph.cc

- LoadBalancer -> LoadBalancerPort.
- White space. Name variable "subset" more accurately: "handling_rank". I don't know
why it was named "subset" to begin with as it doesn't appear to be a "set" to me...

M CCA/Components/Schedulers/UnifiedScheduler.cc

- White space.

M CCA/Components/SimulationController/AMRSimulationController.cc

- There are a lot of cosmetic cleanups in this file, but the real/main change is:
- Add in hack to handle changing from "nth process output" (for checkpoints) to
"1 process output" (for time steps) when running with PIDX (and nth process is > 1).
- Declare variables (start) where they are used, not at the top of a function.
- Move the terminal output of the 0th timestep out of the main simulation loop.
- White space / alignment / etc.
- LoadBalancer -> LoadBalancerPort.

M CCA/Components/SimulationController/SimulationController.h
M CCA/Components/SimulationController/SimulationController.cc
M CCA/Components/Solvers/AMR/AMRSolver.cc
M CCA/Components/Solvers/AMR/HypreDriver.cc
M CCA/Components/Solvers/AMR/HypreDriverStruct.cc
M CCA/Components/Solvers/CGSolver.cc
M CCA/Components/Solvers/HypreSolver.cc
M CCA/Components/Wasatch/Expressions/Coordinate.cc
M CCA/Components/Wasatch/Expressions/PoissonExpression.cc
M CCA/Components/Wasatch/Expressions/Pressure.cc
M CCA/Components/Wasatch/Expressions/RadiationSource.cc
M CCA/Components/Wasatch/Wasatch.cc
M CCA/Ports/Scheduler.h
M CCA/Ports/sub.mk
M Core/DataArchive/DataArchive.h
M Core/DataArchive/DataArchive.cc
M Core/Grid/Grid.h
M Core/Grid/Grid.cc
M Core/Grid/Level.h
M Core/Grid/Level.cc
M StandAlone/tools/uda2vis/uda2vis.cc

- LoadBalancer -> LoadBalancerPort.
- Cosmetic white space, alpha, etc.

M CCA/Ports/Output.h

- Removed getCurrentTimestep() and getCurrentTime() as the user should get
them from the shared state.
- Added postponeNextOutputTimestep().
- Added savingAsPIDX().



19 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+11 -11), DataArchive.h (+8 -8)
ahumphrey 2016-07-06 12:15 Rev.: 55486

Significant refactoring of Level and LoadBalancerCommon prior to adding in per-level max_ghost_cells machinery.

6 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+1 -1), DataArchive.h (+5 -5)
ahumphrey 2016-06-13 11:46 Rev.: 55440

Replace usage of NULL macro (type int) with nullptr (pointer literal of type: nullptr_t).

nullptr is implicitly convertible and comparable to any pointer type or pointer-to-member type, but is not implicitly comparable to integral types, except that it is convertible to bool (explicitly).

42 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+25 -25), DataArchive.h (+17 -17)
ahumphrey 2016-06-07 09:19 Rev.: 55420

Removal of src/Core/Thread and related refactoring throughout the code-base.

This is the first step in a series of infrastrucutre overhauls to modernize Uintah. Though this all passes local RT (both CPU and GPU tests), I expect some fallout we haven't considered and will be standing by to deal with any issues. Once the dust settles, we will move to replacing Core/Malloc with jemalloc.

* We are now using the standard library for all multi-threading needs within the infrastructure, e.g. std::atomic, std::thread, std::mutex, etc.

* The Unified Scheduler is now the only multi-threaded scheduler, e.g. ThreadedMPIScheduler no longer exists (though the source will soon be placed into an attic).

* Threads spawned by the Unified Scheduler are detached by default (not joinable), allowing for easy, clean and independent execution. There are no longer ConditionVariables used to signal worker threads, just a simple enum for thread-state.

* What was Core/Thread/Time.* is now Core/Util/Time.* - a next step will be to migrate all internal timers, etc to use std::chrono.

* NOTE: Though much cleanup has occurred with this commit, there is still significant cleanup and formatting to be done. The scope of this commit neccessitates a more incremental approach.

6 lines of code changed in 4 files:

  • Core/DataArchive: DataArchive.cc (+2 -3), DataArchive.h (+4 -4), sub.mk (new)
dav 2016-04-15 12:18 Rev.: 55191

A number of fixes for Titan (CUDA) and static builds in general. Also, with this commit, the stand-alone
tools such as puda and compare_uda should now work on machines that require static builds.

M configure
M configure.ac

- Turn back on the C++11 check.
- Fix check for broken exceptions (on Titan) that fails because the code is cross-compiled.
- When MPI is specified as built-in, the NVCC compiler fails to find mpi.h (as we don't specify
the -I/path/to/mpi/ flag). This commit uses the built-in compiler to find the location of mpi, and
provides the location to the NVCC compiler (using INC_MPI_H_NVCC).
- Remove some old debugging statements.
- Fix (hack) on Titan for problem with CUDA 7.0 and Boost. Must specify two -D flags.

M configVars.mk.in

- Add the INC_MPI_H_NVCC flag to the NVCC_CXXFLAGS var.
- Fix (copy/paste?) bug where cuda .d files were being deleted as thus make dependency information
was lost. I'm guessing that before this fix, Uintah CUDA developers must have experienced
strange behavior when modifying .h files as the code would not have re-built like it should have.
- Remove all .d files from the base directory... This is due to the fact that Titan's NVCC compiler
is leaving around many bogus/tmp .d files and not cleaning up after itself. It might be that
we should make a check for being on Titan (or a more general test for problematic NVCC .d
generation - though I'm not sure right off on how to write this check) - but for now the removing
of all .d files in the base dir should have no effect on anything else.
- Make verbose output not suppress the "rm" call.

M CCA/Components/Wasatch/Wasatch.h
M CCA/Components/Wasatch/Wasatch.cc

- Fix compiler warning about "const" return variables.
- White space.

M CCA/Components/ProblemSpecification/ProblemSpecReader.cc

- Allow for validation of .ups file on machines where the executable is not in build tree (eg: on Titan,
before running sus, you must move it to a file system visible to the compute nodes). In order
to use this functionality, you must copy the "inputs/" directory to the same location you move sus to.
- It appears that, when validating the .ups file, sus was doing the validation on every process. This
doesn't seem like it is necessary, so only do so now on proc 0...

M Core/Exceptions/ErrnoException.cc

- White space, {}s.

M Core/Grid/Variables/CCVariable.h
M Core/Grid/Variables/SFCYVariable.h
M Core/Grid/Variables/NCVariable.h
M Core/Grid/Variables/SFCXVariable.h
M Core/Grid/Variables/SFCZVariable.h

- Remove the "registerMe" code that is not used. Perhaps it was replaced with the current method of
registering Uintah variables but not cleaned up? Regardless, it doesn't do anything now, and
just makes tracking what is going on more difficult, so it is best that it be removed.
- Put one-line functions in a .h file on a single line to make it easier to view the class spec.

M Core/Grid/Variables/sub.mk

- Add the StaticInstantiate.cc file. This file is used to force Uintah variable registration on
machines that use static builds and don't register the variables in the normal/correct way
when the shared library (static constructors fire) is loaded.

A Core/Grid/Variables/StaticInstantiate.h
A Core/Grid/Variables/StaticInstantiate.cc

- Uintah relies on our variable types (CCVariable, NCVariable, etc) being registered with Uintah
before it allows components to create a variable of the given type. On most systems (and
specifically for shared lib builds), when the CCVariable.o code is loaded from libCore_Grid.so
static constructors fire and register the variables. However, on some machines that use static
builds (such as Titan) appear to "optimize out" these constructors, and thus the variables
never register themselves and when puda or compare_uda (etc) try to load data, the Uintah
type system says it does not recognize the type and dies. This commit adds the (hack) function
instantiateVariableTypes() which sole purpose is to create variables of all types that Uintah
uses so that they will register themselves with the type system. This function is called the
first time a DataArchive is created (on static builds). All the variables it creates go away
as soon as the function is done, but have by then registered themselves.

M Core/DataArchive/DataArchive.h
M Core/DataArchive/DataArchive.cc

- Use the instantiateVariableTypes() function the 1st time a DataArchive is created (on static builds).
- Add a few more 'const's for variables that must not change.
- Indent properly, white space.
- Move some private data to the main private section.

M Core/Disclosure/TypeUtils.cc

- Move to 80+ columns for better readability.

M Core/Disclosure/TypeDescription.cc

- Remove the (non-used) Register section.

349 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+22 -5), DataArchive.h (+327 -324)
jas 2016-03-15 18:25 Rev.: 55029

More changes from SCIRun to Uintah. Delete unused SCIRun build_script files.

3 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+1 -1), DataArchive.h (+2 -2)
jas 2016-03-15 18:25 Rev.: 55025

Remove persistent I/O calls from various classes.

2 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.h (+2 -2)
jas 2016-03-15 18:24 Rev.: 55024

Move non-conflicting classes that were in SCIRun namespace to Uintah namespace.

6 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+2 -2), DataArchive.h (+4 -5)
harman 2016-03-08 18:12 Rev.: 54994

Fixed compiler warning in constructor
Removed EOL spaces.

query()
- using Parallel.h to get MPI_Comm and pass that to PIDX. -Alan


121 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+121 -119)
harman 2016-03-02 17:14 Rev.: 54952

PIDX code:
store the idx filename in pxxxxx.xml, not the full path. Hopefully, this commit will eliminate
some amount of confusion.



13 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+12 -4), DataArchive.h (+1 -1)
harman 2016-02-18 17:27 Rev.: 54858

DataArchiver.cc saveLabels_PIDX()
- updated ToDo list
- removed t_buffer, it's not needed.
- updated call to printBuffer()

PIDXOutput
- created a wrapper for printBuffer to take into account CCVariable<int>.
- changed the form of the hard wired equation used for debugging buffer.


7 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+7 -9)
jas 2016-02-17 21:38 Rev.: 54854

Check if grid_file exists before attempting to close it.

2 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+2 -1)
jas 2016-02-17 16:00 Rev.: 54848

Use xmlTextWriter to write out <Grid> and <Data> section to grid.xml.

139 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+136 -13), DataArchive.h (+3 -1)
harman 2016-02-17 15:27 Rev.: 54847


- consolidated code for setting the level extents to PIDXOutputContext.

7 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+7 -15)
harman 2016-02-17 12:26 Rev.: 54843

code consolidation:
- moved code to check the PIDX return codes to PIDXOutputContext.cc
- moved code to compute the Patch extents to PIDXOutputContext -- setPatchExtents()
- created struct to hold the patchExtents.

27 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+27 -48), DataArchive.h (-5)
harman 2016-02-16 16:18 Rev.: 54840

PIDXOutputContext:
Add function printBuffer() that prints out the PIDX buffer in a human readable format.
Thanks Dav for the needed push

DataArchive.cc & dataArchiver.cc
- cleaned out gross debugging code and replaced with printBuffer(). Debugging output is wrapped with
SCI_DEBUG calls.


9 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+9 -25)
harman 2016-02-16 14:54 Rev.: 54839

query()
- Feplaced getenv call with a new function to determine if PIDX is enabled.

9 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+1 -1), DataArchive.h (+8)
harman 2016-02-11 19:25 Rev.: 54825

Bulletproofing:
Throw an exception if the user tries to read a PIDX uda using stock code.

12 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+12)
harman 2016-02-11 17:57 Rev.: 54824

Added a filename to the VarData struct. With PIDX each variable has a different filename.

query() PIDX section
- open the file defined in the VarData struct.
- Wrapped debugging code with conditional statements controlled with SCI_DEBUG vars.

48 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+47 -51), DataArchive.h (+1)
harman 2016-02-11 14:15 Rev.: 54821

Level.h - pullled a weed.

Variable.cc/h
- added readPIDX() method which passes an pidxBuffer into an Array3
- commented emitPIDX()

DataArchive.cc
query() PIDX section
-Now pushing pidxBuffer into an Array3 via readPIDX()

With this commit the user can output:PIDX and read:PIDX. Also:

compare_uda -exact PIDX.uda stock.uda

compares exactly. Only 1 variable in index.xml works. There's a bug with multiple variables.


25 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+25 -30)
harman 2016-02-10 17:24 Rev.: 54813

query() pidx section
- simpilified testing return codes.
- added debugging code to output the array read in.

87 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+79 -54), DataArchive.h (+8)
harman 2016-02-08 17:59 Rev.: 54802

Added ability to outputDoublesAsFloats in PIDX. Not Verified.

DataArchiver.cc
- saveLabels_PIDX() - top of the stack for writing PIDX
set pc.setOutputDoubleAsFloat()

Variable.cc
- added dividers
- emitPIDX()
pass in expected bufferSize and check against it.
Pass into emitNormal() outputDoubleAsFloat argument

PIDXOutputContext.*
- added methods setOutputDoubleAsFloat() and isOutputDoubleAsFloat()

DataWarehouse.h OnDemandDataWarehouse.h
- updated parameters for emitPIDX()

OnDemandDataWarehouse::emitPIDX()
- added {}
- passing expect buffer size through to var->emitPIDX()



9 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+9 -2)
harman 2016-02-07 17:25 Rev.: 54798

restartInitialize()
- indices -> ts_indices ts == timestep

query() PIDX section
- removed hardwired timestep. Now using the global variable d_ts_indices

9 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+8 -8), DataArchive.h (+1 -1)
harman 2016-02-07 16:46 Rev.: 54797

DataArchiver::output PIDX
- removed the path for the idxfilename. Pass that string around.

DataArchive::query()
- added enum to help if a variable is a patch based or a reduction.
- open reduction variables using the standard used plumbing.
- only open pidx files with patch based variables.
- removed hard coding for the pidx filename.

10 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+8 -6), DataArchive.h (+2)
harman 2016-02-05 18:47 Rev.: 54793

DataArchiver::saveLabels_PIDX()
- output pXXXX.xml files. Use the same format as a stock uda. We can use
the existing data Structures inside of DataArchieve so we/I don't have to do a complete overhaul.

DataArchive::query()
- read from the pXXXX.xml files, which have been parsed upstream, the variable index
Use that index when pulling variables from the pidx file.
- use the time index in the pidx query.

The 1Level, 1matl, checkpoint variables can be read into a local buffer. Heavy construction zone.

17 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+17 -7)
harman 2016-02-05 15:23 Rev.: 54790

DataArchiver::saveLabels_PIDX
- added exception if allocating memory for the buffers failed.

DataArchive::query()
- added machinery to read a variable from a PIDX file. This is a heavy construction
zone with hardwired variables. It will read in a single variable.

145 lines of code changed in 1 file:

  • Core/DataArchive: DataArchive.cc (+145 -1)
harman 2016-02-05 13:28 Rev.: 54788

Added plumbing back to identify if an uda is using stock or PIDX file format.

Thanks valgrind for the clue.


87 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+78 -31), DataArchive.h (+9 -1)
harman 2016-02-04 18:46 Rev.: 54786

Fixed one memory issue kicked up by DDT.....there are others.
- removed d_lb, it's not used.

2 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+1 -5), DataArchive.h (+1 -2)
harman 2016-02-04 11:16 Rev.: 54783

revert to 54770. This should fix the compare_uda crashing.

private:
friend class DataArchive::TimeData;
DataArchive( const DataArchive& );
DataArchive& operator=( const DataArchive& );

enum outputFileFormat {UDA, PIDX};
outputFileFormat d_outputFileFormat; <<<<< this was causing a problem.

31 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+30 -80), DataArchive.h (+1 -10)
harman 2016-02-02 16:44 Rev.: 54772

Adding plumbing to identify the output file format (uda/pidx) in the index.xml files.

90 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+80 -30), DataArchive.h (+10 -1)
harman 2016-02-01 18:26 Rev.: 54763

formatting.
- added dividers.
- added {}

88 lines of code changed in 2 files:

  • Core/DataArchive: DataArchive.cc (+76 -32), DataArchive.h (+12 -6)
jas 2016-01-08 15:45 Rev.: 54640

Update copyright date to 2016.

3 lines of code changed in 3 files:

  • Core/DataArchive: DataArchive.cc (+1 -1), DataArchive.h (+1 -1), sub.mk (+1 -1)
Generated by StatSVN 0.7.0