[Dda-cvs] ntdda/src mohrcoulomb.c,1.5,1.6
Status: Beta
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2006-07-02 23:29:33
|
Update of /cvsroot/dda/ntdda/src In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv6082 Modified Files: mohrcoulomb.c Log Message: Added directives to allow mohrcoulomb to be compiled into a free standing executable for testing purposes. Index: mohrcoulomb.c =================================================================== RCS file: /cvsroot/dda/ntdda/src/mohrcoulomb.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mohrcoulomb.c 2 Jul 2006 23:18:40 -0000 1.5 --- mohrcoulomb.c 2 Jul 2006 23:29:30 -0000 1.6 *************** *** 17,20 **** --- 17,28 ---- */ + #ifdef __cplusplus + extern "C" { + #endif + #if 0 + } + #endif + + double sigm, dsbar, theta, cs[5], pl[5][5]; *************** *** 201,202 **** --- 209,230 ---- } + + #ifdef __cplusplus + } + #endif + + #ifdef STANDALONE + /** + * Free standing program for testing Mohr-Coulomb + * computations. + * + * Compile with: + * gcc -Wall -o mc mohrcoulomb.c -I../include -DSTANDALONE + * + */ + int + main(int argc, char ** argv) { + + return 0; + } + #endif /* STANDALONE */ |