Skip to content
Snippets Groups Projects
Commit 3c09c97b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

allow to combine elements with empty views

parent b50947ad
No related branches found
No related tags found
No related merge requests found
// $Id: PViewDataList.cpp,v 1.13 2008-02-24 14:55:37 geuzaine Exp $
// $Id: PViewDataList.cpp,v 1.14 2008-02-27 17:02:47 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -603,7 +603,7 @@ bool PViewDataList::combineSpace(nameData &nd)
if(nd.data.size() < 2) return false;
int ts = nd.data[0]->getNumTimeSteps();
for(unsigned int i = 1; i < nd.data.size(); i++) {
if(nd.data[i]->getNumTimeSteps() != ts){
if(!nd.data[i]->empty() && nd.data[i]->getNumTimeSteps() != ts){
Msg(GERROR, "Cannot combine views having different number of time steps");
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment