Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Compile issues related to External material model

$
0
0

Dear all:

I programed an external material model in which the utility functions provided by COMSOL are used. However, I encoutered some issues related to these utility functions when I was trying to compile the code. Could you please give me some ideas to solve these issues? Thanks for your help.

The error messages are as follows:

Code 1 line 155: int csext_from_voigt(double sTrial[6], int 1, double sTmatrix[3][3]);

Errors: EFM_new.c(155): error C2143: syntax error: missing ')' before 'constant' EFM_new.c(155): warning C4030: first formal parameter list longer than the second list EFM_new.c(155): error C2143: syntax error: missing ';' before 'constant' EFM_new.c(155): error C2059: syntax error: 'type' EFM_new.c(155): error C2059: syntax error: ')'

Code 2 int csext_eig(double sTmatrix[3][3], double vals[3], double vecs[3][3]);

Errors: EFM_new.c(175): error C2065: 'vecs': undeclared identifier EFM_new.c(175): error C2109: subscript requires array or pointer type

CODE 3 int csext_inv(double C[3][3], double 1e-5, double C_in[3][3]);

Errors: EFM_new.c(332): error C2143: syntax error: missing ')' before 'constant' EFM_new.c(332): warning C4030: first formal parameter list longer than the second list EFM_new.c(332): error C2143: syntax error: missing ';' before 'constant' EFM_new.c(332): error C2059: syntax error: 'type' EFM_new.c(332): error C2059: syntax error: ')'


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>