main.cpp

来自「不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.」· C++ 代码 · 共 39 行

CPP
39
字号
/*
	Program developed by Yves DUBOIS-PELERIN and Thomas ZIMMERMANN 
	at the Laboratory for Structural and Continuum mechanics, Ecole
	Polytechnique Federale de Lausanne under Swiss National	Science 
	Foundation grant number 21-27589.89, June 1992.
	
	Expurgated version developed by Yves Dubois-Pelerin for ZACE 
	Services Ltd, November 1992.
*/

//  MAIN
//  Solves finite element problems.
//
//  The DEBUG option MUST be used (check in file 'debug.def').
//  See also file 'main2.c'.

#include "domain.hxx"
#include "freestor.h"
#include "compiler.def"


void main ()
{
	/*
#ifdef BORLAND
   set_new_handler (&freeStoreError) ;     // prevents memory overflow
#endif
   */

   Domain* mesh ;

   mesh = new Domain() ;
   mesh -> solveYourself() ;
   delete mesh ;
}



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?