Commit 659249c0 authored by jclamber's avatar jclamber

start debugging ramses reading

TODO:
check pb with directories


git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@203 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent d28aaf1e
......@@ -119,14 +119,13 @@ int CPart::loadData(uns::CParticles * particles,
double * agetmp, * metaltmp;
int * id=NULL;
if (req_bits&ID_BIT) {
id = new int[npart];
part.readDataBlock((char *) id); // read identity
} else {
part.skipBlock(); // skip identity
}
if (nstar>0) { // || 1) { // there are stars
if (req_bits&ID_BIT) {
id = new int[npart];
part.readDataBlock((char *) id); // read identity
} else {
part.skipBlock(); // skip identity
}
part.skipBlock(); // skip level
agetmp = new double[npart];
part.readDataBlock((char *) agetmp);
......
......@@ -82,10 +82,10 @@ void CunsIn::init(const std::string _name ,const std::string _comp ,const std::s
if (simname == "-") { // we assume here that "-"
tryNemo(); // is standard input and a NEMO stream...
} else {
if (tools::Ctools::isFileExist(simname) && // file exist
! tools::Ctools::isDirectory(simname)) { // not a directory
if (tools::Ctools::isFileExist(simname)) { // file exist
// ! ) { // not a directory
tryGadget(); // try gadget
if (!valid) { // gadget failed
if (!valid && tools::Ctools::isDirectory(simname)) { // gadget failed
tryRamses(); // try ramses
}
if (!valid) { // gadget failed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment