diff -u ccx_2.18/src.orig/CalculiX.h ccx_2.18/src/CalculiX.h
old
|
new
|
|
320 | 320 | ITG *irows,ITG *ndesi,ITG *nodedesi,double *corrlen, |
321 | 321 | double *randomval,ITG *irobustdesign)); |
322 | 322 | |
| 323 | void FORTRAN(auglag_inclusion ,(int conttype, double *gcontfull, int nacti, |
| 324 | int ncdim, double mufric, double atol, double rtol, double *pkvec, |
| 325 | int kitermax, double timek )); |
| 326 | |
323 | 327 | void FORTRAN(basis,(double *x,double *y,double *z,double *xo,double *yo, |
324 | 328 | double *zo,ITG *nx,ITG *ny,ITG *nz,double *planfa, |
325 | 329 | ITG *ifatet,ITG *nktet,ITG *netet,double *field, |
… |
… |
|
901 | 905 | void FORTRAN(checktruecontact,(ITG *ntie,char *tieset,double *tietol, |
902 | 906 | double *elcon,ITG *itruecontact,ITG *ncmat_,ITG *ntmat_)); |
903 | 907 | |
904 | | void FORTRAN(clonesensitivies,(ITG *nobject,ITG *nk,char *objectset, |
| 908 | void FORTRAN(clonesensitivities,(ITG *nobject,ITG *nk,char *objectset, |
905 | 909 | double *g0,double *dgdxglob)); |
906 | 910 | |
907 | 911 | void FORTRAN(closefile,()); |
… |
… |
|
1391 | 1395 | ITG *jqib,double *g,ITG *icolbb,ITG *nactdof, |
1392 | 1396 | double *qtmp)); |
1393 | 1397 | |
| 1398 | void FORTRAN(detectactivecont2,(double *gapnorm, double *gapdof, |
| 1399 | double *auw, int *iroww, int *jqw, |
| 1400 | int neqtot, int nslavs, double *springarea, |
| 1401 | int *iacti, int nacti)); |
| 1402 | |
1394 | 1403 | void FORTRAN(determineextern,(ITG *ifac,ITG *itetfa,ITG *iedg,ITG *ipoed, |
1395 | 1404 | ITG *iexternedg,ITG *iexternfa,ITG *iexternnode, |
1396 | 1405 | ITG *nktet_,ITG *ipofa)); |
… |
… |
|
4674 | 4683 | ITG *newsize,ITG *ifatet,ITG *itetfa,ITG *iedg, |
4675 | 4684 | ITG *ieled)); |
4676 | 4685 | |
| 4686 | void FORTRAN(relaxval_al, (double *gcontfull, int nacti, int ncdim)); |
| 4687 | |
4677 | 4688 | void remastruct(ITG *ipompc,double **coefmpcp,ITG **nodempcp,ITG *nmpc, |
4678 | 4689 | ITG *mpcfree,ITG *nodeboun,ITG *ndirboun,ITG *nboun, |
4679 | 4690 | ITG *ikmpc,ITG *ilmpc,ITG *ikboun,ITG *ilboun, |
… |
… |
|
6020 | 6031 | |
6021 | 6032 | void utempread(double *t1,ITG *istep,char *jobnamec); |
6022 | 6033 | |
| 6034 | double v_betrag(double *a); |
| 6035 | |
| 6036 | void v_prod( double *A, double *B, double *C ); |
| 6037 | |
| 6038 | void v_result( const double *A, const double *B, double *C ); |
| 6039 | |
6023 | 6040 | void FORTRAN(varsmooth,(double *aub,double *adl, |
6024 | 6041 | double *sol,double *aux,ITG *irow, |
6025 | 6042 | ITG *jq,ITG *neqa,ITG *neqb,double *alpha)); |
diff -u ccx_2.18/src.orig/Makefile ccx_2.18/src/Makefile
old
|
new
|
|
1 | 1 | |
2 | | CFLAGS = -Wall -O2 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT |
3 | | FFLAGS = -Wall -O2 |
| 2 | CFLAGS += -Wall -O2 -pthread -I../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DUSE_MT=1 -DBLAS_LIBRARIES=vecLibFort -DLAPACK_LIBRARIES=vecLibFort |
| 3 | FFLAGS += -O2 |
| 4 | LDFLAGS += |
4 | 5 | |
5 | | CC=cc |
6 | | FC=gfortran |
7 | 6 | |
8 | 7 | .c.o : |
9 | 8 | $(CC) $(CFLAGS) -c $< |
… |
… |
|
18 | 18 | OCCXC = $(SCCXC:.c=.o) |
19 | 19 | OCCXMAIN = $(SCCXMAIN:.c=.o) |
20 | 20 | |
21 | | DIR=../../../SPOOLES.2.2 |
| 21 | DIR=../../SPOOLES.2.2 |
22 | 22 | |
23 | 23 | LIBS = \ |
24 | 24 | $(DIR)/spooles.a \ |
25 | | ../../../ARPACK/libarpack_INTEL.a \ |
| 25 | -larpack -lvecLibFort \ |
26 | 26 | -lpthread -lm -lc |
27 | 27 | |
28 | | ccx_2.18: $(OCCXMAIN) ccx_2.18.a $(LIBS) |
29 | | ./date.pl; $(CC) $(CFLAGS) -c ccx_2.18.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.18.a $(LIBS) -fopenmp |
| 28 | ccx_2.18: $(OCCXMAIN) ccx_2.18.a |
| 29 | ./date.pl; $(CC) $(CFLAGS) -c ccx_2.18.c; $(FC) $(FFLAGS) -o $@ $(OCCXMAIN) ccx_2.18.a $(LIBS) -fopenmp |
30 | 30 | |
31 | 31 | ccx_2.18.a: $(OCCXF) $(OCCXC) |
diff -u ccx_2.18/src.orig/cubtri.f ccx_2.18/src/cubtri.f
old
|
new
|
|
77 | 77 | & mw,nfe |
78 | 78 | REAL*8 ALFA, ANS, ANSKP, AREA, EPS, ERR, ERRMAX, H, Q1, Q2, R1,R2, |
79 | 79 | * RDATA(1), D(2,4), S(4), T(2,3), VEC(2,3), W(6,NW), X(2),zero, |
80 | | & point5,one,rnderr |
| 80 | & point5,one,F,rnderr |
81 | 81 | C ACTUAL DIMENSION OF W IS (6,NW/6) |
82 | 82 | C |
83 | 83 | REAL*8 TANS, TERR, DZERO |
diff -u ccx_2.18/src.orig/date.pl ccx_2.18/src/date.pl
old
|
new
|
|
13 | 13 | |
14 | 14 | # inserting the date into ccx_2.18step.c |
15 | 15 | |
16 | | @ARGV="ccx_2.18step.c"; |
| 16 | @ARGV="CalculiXstep.c"; |
17 | 17 | $^I=".old"; |
18 | 18 | while(<>){ |
19 | 19 | s/You are using an executable made on.*/You are using an executable made on $date\\n");/g; |
… |
… |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | system "rm -f ccx_2.18.c.old"; |
33 | | system "rm -f ccx_2.18step.c.old"; |
| 33 | system "rm -f CalculiXstep.c.old"; |
34 | 34 | system "rm -f frd.c.old"; |
diff -u ccx_2.18/src.orig/premortar.c ccx_2.18/src/premortar.c
old
|
new
|
|
19 | 19 | #include <math.h> |
20 | 20 | #include <stdlib.h> |
21 | 21 | #include <time.h> |
| 22 | #include <string.h> |
22 | 23 | #include "CalculiX.h" |
23 | 24 | #include "mortar.h" |
24 | 25 | |
diff -u ccx_2.18/src.orig/resultsmech_us3.f ccx_2.18/src/resultsmech_us3.f
old
|
new
|
|
461 | 461 | & ihyper,istiff,elconloc,eth,kode,plicon, |
462 | 462 | & nplicon,plkcon,nplkcon,npmat_, |
463 | 463 | & plconloc,mi(1),dtime,k, |
464 | | & xstiff,alcon) |
| 464 | & xstiff,ncmat_) |
465 | 465 | e = elas(1) |
466 | 466 | un = elas(2) |
467 | 467 | rho = rhcon(1,1,imat) |
diff -u ccx_2.18/src.orig/sensi_coor.c ccx_2.18/src/sensi_coor.c
old
|
new
|
|
18 | 18 | #include <stdio.h> |
19 | 19 | #include <math.h> |
20 | 20 | #include <stdlib.h> |
| 21 | #include <string.h> |
21 | 22 | #include "CalculiX.h" |
22 | 23 | |
23 | 24 | void sensi_coor(double *co,ITG *nk,ITG **konp,ITG **ipkonp,char **lakonp, |
diff -u ccx_2.18/src.orig/sensi_orien.c ccx_2.18/src/sensi_orien.c
old
|
new
|
|
18 | 18 | #include <stdio.h> |
19 | 19 | #include <math.h> |
20 | 20 | #include <stdlib.h> |
| 21 | #include <string.h> |
21 | 22 | #include "CalculiX.h" |
22 | 23 | |
23 | 24 | void sensi_orien(double *co,ITG *nk,ITG **konp,ITG **ipkonp,char **lakonp, |
diff -u ccx_2.18/src.orig/us4_sub.f ccx_2.18/src/us4_sub.f
old
|
new
|
|
454 | 454 | REAL*8, INTENT(IN) :: X(4,3),rho,h |
455 | 455 | REAL*8, INTENT(OUT) :: M(24,24) |
456 | 456 | REAL*8 :: ri,si,Nrs(4),dNr(4),dNs(4),Jm(2,2) |
457 | | REAL*8 :: invJm,detJm,detinvJm,dNx(4),dNy(4),q1 |
| 457 | REAL*8 :: invJm(2,2),detJm,detinvJm,dNx(4),dNy(4),q1 |
458 | 458 | REAL*8 :: m_3t(6,6), N_u(6,24),g_p(4,3) |
459 | 459 | INTEGER :: k,j |
460 | 460 | ! |
diff -ur ccx_2.18/src.orig/ccx_2.18.c ccx_2.18/src/ccx_2.18.c
old
|
new
|
|
115 | 115 | |
116 | 116 | clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart); |
117 | 117 | |
118 | | if(argc==1){printf("Usage: CalculiX.exe -i jobname\n");FORTRAN(stop,());} |
| 118 | if(argc==1){printf("Usage: ccx -i jobname\n");FORTRAN(stop,());} |
119 | 119 | else{ |
120 | 120 | for(i=1;i<argc;i++){ |
121 | 121 | if(strcmp1(argv[i],"-i")==0){ |