18 if (path || base || suff)
errol;
24 path =
new char[p-name+2];
25 strncpy (path, name, p-name+1);
26 path[p-name+1] =
'\0';
34 base =
new char[p-name+1];
35 strncpy (base, name, p-name);
38 suff =
new char[strlen(p)+1];
42 base =
new char[strlen(name)+1];
49 char *aux =
strdupl (src, dest);
93 if (
p)
_errorr(
"mismatch in refNode");
99 if (
number > (*points)())
_errorr(
"refnode id is greather then number of all nodes");
105 for (
long i=0; i<(*points)(); i++)
106 if ((*points)[i]->has_mproperty(
number)) {
107 if (
p)
_errorr(
"node with property %d is not unique");
108 else p = (*points)[i];
117 const Node *n =
dynamic_cast<const Node *
>(
p);
124 for (
long did=0; did<numdom; did++)
125 ((
Node*)n)->add_me_to_domain (did);
153 else _errorr2(
"wrong keyword xy xz is supposed, not %s", WORD);
160 else _errorr2(
"wrong keyword in refnode input %s", WORD);
168 const Node *n =
dynamic_cast<const Node *
>(
p);
169 if (
p && n == NULL) {
181 fprintf (stream,
" -1 rnlcs 3 % .6g % .6g % .6g", y.
x, y.
y, y.
z);
184 if (
p) fprintf (stream,
" %ld", n->
give_lid_id(did) + 1 );
207 else _errorr2 (
"Unsupported key word in problem analysis line adaptivity \"%s\"", W);
223 norm = atol(argv[0]);
235 while (n-- >= 0) fprintf (stdout,
" ");
245 va_start(args, format);
246 vsprintf(buffer, format, args);
258 va_start(args, format);
259 vsprintf(buffer, format, args);
270 int hod = (int)sec/3600; sec -= hod*3600;
271 int min = (int)sec/60; sec -= min*60;
274 sprintf (buffer,
"%2d:%02d:%05.2f ", hod, min, sec);
283 if (buffer) buflen = strlen(buffer);
320 default:
_errorr (
"Unknown type of flag in function print_info_message");
void setup_rotmat_g2l(MatriX *rotmat)
char * strdupl(const char *src)
standard strdup - Memory for the new string is obtained with malloc(3), and can be freed with free(3)...
void change_console_colour(FILE *stream, ETCLR clr)
#define CHANGE_CONSOLE_COLOUR(_1, _2)
void initialize_from(const char *&str, femFileFormat ff)
void addSRCpriorDESTalloc(char *&dest, const char *src)
const GPA< Point > * give_Pjnts(void) const
long give_NumDomains(void) const
void copy_to_col_1(const VectoR *v)
long SP_scan_word(const char *&src, char *dest)
... word; return value is length of the word
#define SP_scan_expected_word_exit(_1, _2, _3, _4)
void filename_decomposition(char *&path, char *&base, char *&suff, const char *name)
#define SP_scan_expected_number_exit(_1, _2, _3)
void initialize_from(const char *&str, femFileFormat fff)
void print_info_message(SODenum flag, const char *format,...) const
void copy_to_row_1(const VectoR *v)
void print_row_OOFEM(FILE *stream, int did, Beam *b) const
const Mesh * Msh(void) const
void print_info_message_core(SODenum flag, ETCLR color=ETC_DEFAULT, const char *buffer=NULL) const
void copy_to_row_2(const VectoR *v)
void initialize_from(const char *&str, femFileFormat ff)
const Geometry * give_Geom(void) const
void setup_rotmat_l2g(MatriX *rotmat)
void initialize(const Geometry *geom)
const Point * give_point(long i) const
Structs Elem3D, PoinT and VectoR; classes Array, Array1d, Xscal, Dscal, Xvctr, Lvctr, Dvctr, Xmtrx, Lmtrx and Dmtrx.
Local coordinate system at beam element.
void print_info_message_colour(SODenum flag, ETCLR colour, const char *format,...) const
void copy_to_col_3(const VectoR *v)
#define clrout
Standard output manager.
VectoR * beVectProduct(const VectoR *v1, const VectoR *v2)
vector product v1 x v2 (cross product)
void print_info_time_green_ok(SODenum flag, double sec) const
bool scan_xyz(FILE *stream)
GPA - Generic Pointer Array, template class manages 1d array of pointers to objects of type T...
Auxiliary functions; classes FiLe, LocalCoordSystem, AdaptivityParameters and StdoutDriver.
bool give_Parallel(void) const
VectoR * beP2P(const PoinT *p1, const PoinT *p2)
Receiver is set to vector from p1 to p2, i.e. 'this = p2 - p1'.
bool SP_scan_number(const char *&src, int &dest)
... number of type int/long/double
Class Geometry, Model and Mesh.
long give_lid_id(long dom) const
vraci lid of node, pro non-Parallel vraci id
void copy_to_col_2(const VectoR *v)
void copy_to_row_3(const VectoR *v)
const PoinT * give_coords(void) const
ADPArameters
Adaptivity paramaters.
MIDAS input native ff - pro specialni potreby.