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

Again for sgi
parent ffa22f0f
Branches
Tags
No related merge requests found
// $Id: LevelsetPlugin.cpp,v 1.28 2003-01-25 01:22:42 geuzaine Exp $
// $Id: LevelsetPlugin.cpp,v 1.29 2003-01-25 01:31:29 geuzaine Exp $
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
......@@ -24,6 +24,7 @@
#include "Views.h"
#include "Iso.h"
#include "Numeric.h"
#include "Malloc.h"
GMSH_LevelsetPlugin::GMSH_LevelsetPlugin()
{
......@@ -62,7 +63,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
if(v->NbSS){
Post_View **View = new (Post_View*)[v->NbTimeStep];
Post_View **View = (Post_View**)Malloc(v->NbTimeStep* sizeof(Post_View*));
switch(_orientation){
case ORIENT_PLANE:
......@@ -221,7 +222,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
// a little bogus if multiple output views, but we don't use it anyway
processed = View[0];
delete [] View;
Free(View);
return processed;
}
......
// $Id: Plugin.cpp,v 1.32 2003-01-24 23:13:36 geuzaine Exp $
// $Id: Plugin.cpp,v 1.33 2003-01-25 01:31:29 geuzaine Exp $
//
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
//
......@@ -119,7 +119,6 @@ GMSH_PluginManager* GMSH_PluginManager::Instance(){
void GMSH_PluginManager::RegisterDefaultPlugins(){
struct dirent **list;
char ext[6];
allPlugins.insert(std::pair<char*,GMSH_Plugin*>("CutMap",
GMSH_RegisterCutMapPlugin()));
......@@ -139,6 +138,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){
GMSH_RegisterSphericalRaisePlugin()));
#ifdef _FLTK
char ext[6];
char *homeplugins = getenv ("GMSHPLUGINSHOME");
if(!homeplugins) return;
#if (FL_MAJOR_VERSION == 1 || FL_MAJOR_VERSION == 2) && (FL_MINOR_VERSION == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment