/*****************************************************************************1* *2* Elmer, A Finite Element Software for Multiphysical Problems *3* *4* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *5* *6* This program is free software; you can redistribute it and/or *7* modify it under the terms of the GNU General Public License *8* as published by the Free Software Foundation; either version 2 *9* of the License, or (at your option) any later version. *10* *11* This program is distributed in the hope that it will be useful, *12* but WITHOUT ANY WARRANTY; without even the implied warranty of *13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *14* GNU General Public License for more details. *15* *16* You should have received a copy of the GNU General Public License *17* along with this program (in file fem/GPL-2); if not, write to the *18* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *19* Boston, MA 02110-1301, USA. *20* *21*****************************************************************************/2223/*****************************************************************************24* *25* ElmerGUI matc *26* *27*****************************************************************************28* *29* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *30* Email: [email protected] *31* Web: http://www.csc.fi/elmer *32* Address: CSC - IT Center for Science Ltd. *33* Keilaranta 14 *34* 02101 Espoo, Finland *35* *36* Original Date: 15 Mar 2008 *37* *38*****************************************************************************/3940#ifndef MATC_H41#define MATC_H4243#include <QWidget>44#include "ui_matc.h"4546#include "mc.h"4748extern "C" VARIABLE *var_temp_new(int,int,int);49extern "C" VARIABLE *var_new(char *,int,int,int);50extern "C" VARIABLE *var_check(char *);51extern "C" VARIABLE *var_temp_new(int,int,int);52extern "C" void var_delete(char *);53extern "C" char *mtc_domath(const char *);54extern "C" void mtc_init(FILE *,FILE *,FILE *);55extern "C" void com_init(char *,int,int,VARIABLE *(*)(VARIABLE *),int,int,char*);565758class VtkPost;5960extern VtkPost *vtkp;6162class Matc : public QDialog63{64Q_OBJECT6566public:67Matc(QWidget *parent = 0);68~Matc();6970Ui::mcDialog ui;7172QString domatc(VtkPost*);7374public slots:75bool SetCommand(QString); // Enter matc cmd7677private slots:78void okButtonClicked();7980private:81static VARIABLE *com_curl(VARIABLE *);82static VARIABLE *com_div(VARIABLE *);83static VARIABLE *com_grad(VARIABLE *);84static VARIABLE *com_display(VARIABLE *);85static void grad(VtkPost*, double *, double *);86static void div(VtkPost*, double *, double *);87static void curl(VtkPost*, double *, double *);88};8990#endif // MATC_H919293