diff --git a/tests/lbpm_uCT_pp.cpp b/tests/lbpm_uCT_pp.cpp new file mode 100644 index 00000000..cf8e55aa --- /dev/null +++ b/tests/lbpm_uCT_pp.cpp @@ -0,0 +1,57 @@ +// Sequential blob analysis +// Reads parallel simulation data and performs connectivity analysis +// and averaging on a blob-by-blob basis +// James E. McClure 2014 + +#include "IO/netcdf.h" + +#include "ProfilerApp.h" + + +void load( const std::string filename ) +{ + int fid = netcdf::open( filename ); + + std::vector vars = netcdf::getVarNames( fid ); + for (size_t i=0; i tmp = netcdf::getVar( fid, vars[i] ); + else if ( type == netcdf::SHORT ) + Array tmp = netcdf::getVar( fid, vars[i] ); + else + Array tmp = netcdf::getVar( fid, vars[i] ); + } + + std::vector attr = netcdf::getAttNames( fid ); + for (size_t i=0; i tmp = netcdf::getAtt( fid, attr[i] ); + else + Array tmp = netcdf::getAtt( fid, attr[i] ); + } + netcdf::close( fid ); +} + + +int main(int argc, char **argv) +{ + PROFILE_START("Main"); + + std::vector filenames; + + if ( argc==0 ) { + printf("At least one filename must be specified\n"); + return 1; + } + + for (int i=1; i