Skip to content
Snippets Groups Projects
Commit 47fa3e28 authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 3866c6ac
No related branches found
No related tags found
No related merge requests found
// $Id: Box.cpp,v 1.46 2008-03-18 11:33:04 remacle Exp $
// $Id: Box.cpp,v 1.47 2008-03-18 11:41:08 remacle Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -88,7 +88,7 @@ int GMSHBOX(int argc, char *argv[])
if(CTX.bgm_filename) {
MergeFile(CTX.bgm_filename);
if(PView::list.size()){
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum());
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum()-1);
}
else{
fprintf(stderr, ERROR_STR "Invalid background mesh (no view)\n");
......
// $Id: Main.cpp,v 1.122 2008-03-18 11:33:04 remacle Exp $
// $Id: Main.cpp,v 1.123 2008-03-18 11:41:08 remacle Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -88,8 +88,7 @@ int main(int argc, char *argv[])
if(CTX.bgm_filename) {
MergeFile(CTX.bgm_filename);
if(PView::list.size()){
printf("iii = %i\n",PView::list.back()->getNum());
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum());
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum()-1);
}
else
Msg(GERROR, "Invalid background mesh (no view)");
......@@ -169,7 +168,7 @@ int main(int argc, char *argv[])
if(CTX.bgm_filename) {
MergeFile(CTX.bgm_filename);
if(PView::list.size())
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum());
GModel::current()->fields.set_background_mesh(PView::list.back()->getNum()-1);
else
Msg(GERROR, "Invalid background mesh (no view)");
}
......
// $Id: Field.cpp,v 1.17 2008-03-18 11:33:04 remacle Exp $
// $Id: Field.cpp,v 1.18 2008-03-18 11:41:08 remacle Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -892,7 +892,7 @@ void Field::put_on_view(PView *view,int comp)
void FieldManager::set_background_mesh(int iView){
int id=new_id();
Field *f=new_field(id,"PostView");
f->options["IView"]->numerical_value(iView-1);
f->options["IView"]->numerical_value(iView);
(*this)[id]=f;
background_field=id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment