fixed: conversion of LR hdf5 files

This commit is contained in:
Arne Morten Kvarving
2015-11-10 10:19:29 +01:00
committed by Knut Morten Okstad
parent 5cd603aabf
commit 02194fd19e

View File

@@ -91,13 +91,11 @@ bool readBasis (std::vector<ASMbase*>& result, const std::string& name,
std::stringstream str;
str << out;
std::string line;
line.resize(256);
str.getline(&line[0],256);
str.getline(&line[0],256);
str.getline(&line[0],256);
int gdim;
str.str(line);
str >> gdim >> gdim >> gdim >> gdim >> gdim >> gdim;
int gdim = 0;
line = out.substr(11);
line = line.substr(0,line.find('\n'));
if (line == "SURFACE")
gdim = 2;
if (gdim != dim) {
std::cerr << "Basis dimensionality for " << name
<< " does not match dimension, ignoring" << std::endl;