mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
suggestions by E.A. (salome)
This commit is contained in:
parent
33322c741c
commit
768ef87cac
@ -6,8 +6,8 @@ include_HEADERS = ngexception.hpp
|
||||
|
||||
AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include
|
||||
METASOURCES = AUTO
|
||||
noinst_LTLIBRARIES = libgeneral.la
|
||||
libgeneral_la_SOURCES = array.cpp bitarray.cpp dynamicmem.cpp flags.cpp \
|
||||
noinst_LTLIBRARIES = libgen.la
|
||||
libgen_la_SOURCES = array.cpp bitarray.cpp dynamicmem.cpp flags.cpp \
|
||||
hashtabl.cpp mystring.cpp ngexception.cpp optmem.cpp parthreads.cpp \
|
||||
profiler.cpp seti.cpp sort.cpp spbita2d.cpp symbolta.cpp table.cpp
|
||||
|
||||
|
@ -33,7 +33,7 @@ extern ostream * myerr;
|
||||
|
||||
/** Error messages display.
|
||||
Error messages are displayed by this function */
|
||||
extern void MyError (const char * ch);
|
||||
DLL_HEADER extern void MyError (const char * ch);
|
||||
|
||||
|
||||
/** Rings the bell.
|
||||
|
@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
///
|
||||
extern double GetTime ();
|
||||
DLL_HEADER extern double GetTime ();
|
||||
extern void ResetTime ();
|
||||
|
||||
///
|
||||
|
@ -15,7 +15,7 @@ netgen_LDADD = $(top_builddir)/libsrc/visualization/libvisual.a \
|
||||
$(top_builddir)/libsrc/meshing/libmesh.la \
|
||||
$(top_builddir)/libsrc/gprim/libgprim.la \
|
||||
$(top_builddir)/libsrc/linalg/libla.la \
|
||||
$(top_builddir)/libsrc/general/libgeneral.la \
|
||||
$(top_builddir)/libsrc/general/libgen.la \
|
||||
$(OCCLIBS) -L$(TK_BIN_DIR)/Togl1.7 $(TOGLLIBDIR) -lTogl1.7 $(LIBGLU) $(TK_LIB_SPEC) $(TCL_LIB_SPEC) $(MPI_LIBS) $(FFMPEG_LIBS) $(JPEGLIB_LIBS) $(PKG_LIBS)
|
||||
|
||||
# add for static linkage of ngsolve:
|
||||
|
@ -839,7 +839,7 @@ menu .ngmenu.help
|
||||
|
||||
.ngmenu.help add command -label "About..." \
|
||||
-command {
|
||||
tk_messageBox -message "This is NETGEN \nmainly written by \nJoachim Schöberl \nthanks to \nRobert Gaisbauer, Johannes Gerstmayr, Philippose Rajan"
|
||||
tk_messageBox -message "This is NETGEN \nmainly written by \nJoachim Schoeberl \nthanks to \nRobert Gaisbauer, Johannes Gerstmayr, Philippose Rajan"
|
||||
}
|
||||
|
||||
# tk_menuBar .mbar .mbar.file .mbar.mesh .mbar.test .mbar.help
|
||||
|
@ -246,7 +246,7 @@ namespace netgen
|
||||
|
||||
#ifndef SMALLLIB
|
||||
// Destination for messages, errors, ...
|
||||
void Ng_PrintDest(const char * s)
|
||||
DLL_HEADER void Ng_PrintDest(const char * s)
|
||||
{
|
||||
#ifdef PARALLEL
|
||||
int id, ntasks;
|
||||
@ -263,7 +263,7 @@ namespace netgen
|
||||
(*mycout) << "p" << id << ": " << s << flush ;
|
||||
}
|
||||
|
||||
void MyError(const char * ch)
|
||||
DLL_HEADER void MyError(const char * ch)
|
||||
{
|
||||
cout << ch;
|
||||
(*testout) << "Error !!! " << ch << endl << flush;
|
||||
@ -277,7 +277,7 @@ namespace netgen
|
||||
}
|
||||
|
||||
#ifndef SMALLLIB
|
||||
double GetTime ()
|
||||
DLL_HEADER double GetTime ()
|
||||
{
|
||||
return double(clock() - starttimea) / CLOCKS_PER_SEC;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ libnglib_la_LIBADD = \
|
||||
$(top_builddir)/libsrc/meshing/libmesh.la \
|
||||
$(top_builddir)/libsrc/gprim/libgprim.la \
|
||||
$(top_builddir)/libsrc/linalg/libla.la \
|
||||
$(top_builddir)/libsrc/general/libgeneral.la \
|
||||
$(top_builddir)/libsrc/general/libgen.la \
|
||||
$(OCCLIBS) $(MPI_LIBS)
|
||||
|
||||
libnglib_la_LDFLAGS = -avoid-version
|
||||
|
@ -963,18 +963,18 @@ namespace netgen
|
||||
|
||||
char geomfilename[255];
|
||||
|
||||
void MyError (const char * ch)
|
||||
DLL_HEADER void MyError (const char * ch)
|
||||
{
|
||||
cerr << ch;
|
||||
}
|
||||
|
||||
//Destination for messages, errors, ...
|
||||
void Ng_PrintDest(const char * s)
|
||||
DLL_HEADER void Ng_PrintDest(const char * s)
|
||||
{
|
||||
(*mycout) << s << flush;
|
||||
}
|
||||
|
||||
double GetTime ()
|
||||
DLL_HEADER double GetTime ()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
// Philippose - 14.02.2009
|
||||
// Modifications for creating a DLL in Windows
|
||||
#ifdef WIN32
|
||||
#ifdef NGLIB_EXPORTS
|
||||
#ifdef NGLIB_EXPORTS || nglib_EXPORTS
|
||||
#define DLL_HEADER __declspec(dllexport)
|
||||
#else
|
||||
#define DLL_HEADER __declspec(dllimport)
|
||||
|
Loading…
Reference in New Issue
Block a user