00001 #include "intpointsc.h" 00002 #include "globalc.h" 00003 #include <string.h> 00004 00005 intpointsc::intpointsc () 00006 { 00007 tm = (mattypec) 0; idm=0; 00008 av=NULL; pv=NULL; grad=NULL; fluxes=NULL; 00009 stresses=NULL; 00010 strains=NULL; 00011 nmcomp=0; mssst = (strastrestate) 0; 00012 } 00013 00014 intpointsc::~intpointsc (void) 00015 { 00016 delete [] strains; delete [] stresses; 00017 delete [] av; delete [] pv; 00018 } 00019 00020 /** 00021 function allocates arrays on integration points 00022 00023 JK, 30.10.2004 00024 */ 00025 void intpointsc::alloc () 00026 { 00027 long ntm; 00028 00029 // number of transported media 00030 ntm = Tp->ntm; 00031 00032 strains = new double [nmcomp]; 00033 stresses = new double [nmcomp]; 00034 00035 av = new double [ntm]; 00036 pv = new double [ntm]; 00037 }