Changeset 10576
- Timestamp:
- 11/10/11 10:55:14 (13 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 3 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/Makefile.am
r10568 r10576 361 361 ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\ 362 362 ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.cpp\ 363 ./modules/InputUpdateFromMatrixDakotax/InputUpdateFromMatrixDakotax.h\ 364 ./modules/InputUpdateFromMatrixDakotax/InputUpdateFromMatrixDakotax.cpp\ 363 365 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\ 364 366 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h\ -
issm/trunk/src/c/modules/ModelProcessorx/CreateParameters.cpp
r10522 r10576 110 110 111 111 #ifdef _HAVE_DAKOTA_ 112 CreateParameters Qmu(¶meters,iomodel,solution_type,analysis_type);112 CreateParametersDakota(¶meters,iomodel,solution_type,analysis_type); 113 113 #endif 114 114 -
issm/trunk/src/c/modules/ModelProcessorx/ModelProcessorx.h
r9340 r10576 20 20 void CreateParameters(Parameters** pparameters,IoModel* iomodel,const int solution_type,int analysis_type,int analysis_counter); 21 21 void CreateParametersControl(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type); 22 void CreateParameters Qmu(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type);22 void CreateParametersDakota(Parameters** pparameters,IoModel* iomodel,int solution_type,int analysis_type); 23 23 void UpdateElementsAndMaterialsControl(Elements* elements,Materials* materials, IoModel* iomodel); 24 24 -
issm/trunk/src/c/modules/modules.h
r10440 r10576 50 50 #include "./InputUpdateFromVectorx/InputUpdateFromVectorx.h" 51 51 #include "./InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h" 52 #include "./InputUpdateFromMatrixDakotax/InputUpdateFromMatrixDakotax.h" 52 53 #include "./InputArtificialNoisex/InputArtificialNoisex.h" 53 54 #include "./IoModelToConstraintsx/IoModelToConstraintsx.h" -
issm/trunk/src/c/objects/Elements/Penta.cpp
r10573 r10576 5081 5081 } 5082 5082 /*}}}*/ 5083 /*FUNCTION Penta::InputUpdateFrom VectorMatrix(double* matrix, int nrows, int ncols, int name, int type);{{{1*/5084 void Penta::InputUpdateFrom VectorMatrix(double* matrix, int nrows, int ncols, int name, int type){5083 /*FUNCTION Penta::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{1*/ 5084 void Penta::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 5085 5085 5086 5086 int i,j,t; 5087 TransientInput* transientinput=NULL; 5088 double values[6]; 5089 double time; 5090 int row; 5091 double yts; 5087 5092 5088 5093 /*Check that name is an element input*/ … … 5093 5098 case VertexEnum: 5094 5099 5095 double values[6];5096 double time;5097 5098 /*Ok, create transient input: */ 5100 /*Create transient input: */ 5101 5102 parameters->FindParam(&yts,ConstantsYtsEnum); 5103 5099 5104 for(t=0;t<ncols;t++){ //ncols is the number of times 5100 5105 … … 5108 5113 time=(double)matrix[(nrows-1)*ncols+t]*yts; 5109 5114 5110 if(t==0) transientinput=new TransientInput( vector_enum);5111 transientinput->AddTimeInput(new PentaVertexInput( vector_enum,nodeinputs),time);5115 if(t==0) transientinput=new TransientInput(name); 5116 transientinput->AddTimeInput(new PentaVertexInput(name,values),time); 5112 5117 } 5113 5118 this->inputs->AddInput(transientinput); -
issm/trunk/src/c/objects/Elements/Tria.cpp
r10571 r10576 4980 4980 } 4981 4981 /*}}}*/ 4982 /*FUNCTION Tria::InputUpdateFrom VectorMatrix(double* matrix, int nrows, int ncols, int name, int type);{{{1*/4983 void Tria::InputUpdateFrom VectorMatrix(double* matrix, int nrows, int ncols, int name, int type){4982 /*FUNCTION Tria::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type);{{{1*/ 4983 void Tria::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 4984 4984 4985 4985 int i,j,t; 4986 TransientInput* transientinput=NULL; 4987 double values[3]; 4988 double time; 4989 int row; 4990 double yts; 4986 4991 4987 4992 /*Check that name is an element input*/ … … 4992 4997 case VertexEnum: 4993 4998 4994 double values[3];4995 double time;4996 4997 /*Ok, create transient input: */ 4999 /*Create transient input: */ 5000 5001 parameters->FindParam(&yts,ConstantsYtsEnum); 5002 4998 5003 for(t=0;t<ncols;t++){ //ncols is the number of times 4999 5004 … … 5007 5012 time=(double)matrix[(nrows-1)*ncols+t]*yts; 5008 5013 5009 if(t==0) transientinput=new TransientInput( vector_enum);5010 transientinput->AddTimeInput(new TriaVertexInput( vector_enum,nodeinputs),time);5014 if(t==0) transientinput=new TransientInput(name); 5015 transientinput->AddTimeInput(new TriaVertexInput(name,values),time); 5011 5016 } 5012 5017 this->inputs->AddInput(transientinput); -
issm/trunk/src/c/objects/Loads/Icefront.cpp
r10523 r10576 393 393 /*FUNCTION Icefront::InputUpdateFromVector(bool* vector, int name, int type) {{{1*/ 394 394 void Icefront::InputUpdateFromVector(bool* vector, int name, int type){ 395 /*Nothing updated yet*/ 396 } 397 /*}}}*/ 398 /*FUNCTION Icefront::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type) {{{1*/ 399 void Icefront::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 395 400 /*Nothing updated yet*/ 396 401 } -
issm/trunk/src/c/objects/Loads/Icefront.h
r10407 r10576 61 61 void InputUpdateFromVector(int* vector, int name, int type); 62 62 void InputUpdateFromVector(bool* vector, int name, int type); 63 void InputUpdateFromMatrixDakota(double* matrix,int ncols,int nrows, int name, int type); 63 64 void InputUpdateFromVectorDakota(double* vector, int name, int type); 64 65 void InputUpdateFromVectorDakota(int* vector, int name, int type); -
issm/trunk/src/c/objects/Loads/Numericalflux.h
r9883 r10576 57 57 void InputUpdateFromVector(int* vector, int name, int type){_error_("Not implemented yet!");} 58 58 void InputUpdateFromVector(bool* vector, int name, int type){_error_("Not implemented yet!");} 59 void InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){/*Do nothing*/} 59 60 void InputUpdateFromVectorDakota(double* vector, int name, int type){/*Do nothing*/} 60 61 void InputUpdateFromVectorDakota(int* vector, int name, int type){_error_("Not implemented yet!");} -
issm/trunk/src/c/objects/Loads/Pengrid.cpp
r10523 r10576 390 390 } 391 391 /*}}}*/ 392 /*FUNCTION Pengrid::InputUpdateFromMatrixDakota(double* vector, int nrows, int ncols, int name, int type) {{{1*/ 393 void Pengrid::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 394 /*Nothing updated yet*/ 395 } 396 /*}}}*/ 392 397 /*FUNCTION Pengrid::InputUpdateFromVectorDakota(double* vector, int name, int type) {{{1*/ 393 398 void Pengrid::InputUpdateFromVectorDakota(double* vector, int name, int type){ -
issm/trunk/src/c/objects/Loads/Pengrid.h
r10407 r10576 62 62 void InputUpdateFromVector(int* vector, int name, int type); 63 63 void InputUpdateFromVector(bool* vector, int name, int type); 64 void InputUpdateFromMatrixDakota(double* matrix ,int nrows, int ncols, int name, int type); 64 65 void InputUpdateFromVectorDakota(double* vector, int name, int type); 65 66 void InputUpdateFromVectorDakota(int* vector, int name, int type); -
issm/trunk/src/c/objects/Loads/Penpair.h
r9883 r10576 49 49 void InputUpdateFromVector(int* vector, int name, int type){_error_("Not implemented yet!");} 50 50 void InputUpdateFromVector(bool* vector, int name, int type){_error_("Not implemented yet!");} 51 void InputUpdateFromMatrixDakota(double* matrix, int nrow, int ncols,int name, int type){_error_("Not implemented yet!");} 51 52 void InputUpdateFromVectorDakota(double* vector, int name, int type){_error_("Not implemented yet!");} 52 53 void InputUpdateFromVectorDakota(int* vector, int name, int type){_error_("Not implemented yet!");} -
issm/trunk/src/c/objects/Loads/Riftfront.h
r9883 r10576 69 69 void InputUpdateFromVector(int* vector, int name, int type){_error_("Not implemented yet!");} 70 70 void InputUpdateFromVector(bool* vector, int name, int type){_error_("Not implemented yet!");} 71 void InputUpdateFromMatrixDakota(double* matrix, int nrows,int ncols, int name, int type){_error_("Not implemented yet!");} 71 72 void InputUpdateFromVectorDakota(double* vector, int name, int type){_error_("Not implemented yet!");} 72 73 void InputUpdateFromVectorDakota(int* vector, int name, int type){_error_("Not implemented yet!");} -
issm/trunk/src/c/objects/Materials/Matice.cpp
r10135 r10576 622 622 } 623 623 /*}}}*/ 624 /*FUNCTION Matice::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{1*/ 625 void Matice::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols,int name, int type){ 626 /*Nothing updated yet*/ 627 } 628 /*}}}*/ 624 629 /*FUNCTION Matice::InputUpdateFromVectorDakota(int* vector, int name, int type) {{{1*/ 625 630 void Matice::InputUpdateFromVectorDakota(int* vector, int name, int type){ -
issm/trunk/src/c/objects/Materials/Matice.h
r9883 r10576 47 47 void InputUpdateFromVector(int* vector, int name, int type); 48 48 void InputUpdateFromVector(bool* vector, int name, int type); 49 void InputUpdateFromMatrixDakota(double* matrix, int nrow, int ncols, int name, int type); 49 50 void InputUpdateFromVectorDakota(double* vector, int name, int type); 50 51 void InputUpdateFromVectorDakota(int* vector, int name, int type); -
issm/trunk/src/c/objects/Materials/Matpar.cpp
r10565 r10576 228 228 /*FUNCTION Matpar::InputUpdateFromVectorDakota(bool* vector, int name, int type) {{{1*/ 229 229 void Matpar::InputUpdateFromVectorDakota(bool* vector, int name, int type){ 230 /*Nothing updated yet*/ 231 } 232 /*}}}*/ 233 /*FUNCTION Matpar::InputUpdateFromMatrixDakota(int* vector, int name, int type) {{{1*/ 234 void Matpar::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols,int name, int type){ 230 235 /*Nothing updated yet*/ 231 236 } -
issm/trunk/src/c/objects/Materials/Matpar.h
r10565 r10576 58 58 void InputUpdateFromVector(int* vector, int name, int type); 59 59 void InputUpdateFromVector(bool* vector, int name, int type); 60 void InputUpdateFromMatrixDakota(double* matrix,int nrows,int ncols, int name, int type); 60 61 void InputUpdateFromVectorDakota(double* vector, int name, int type); 61 62 void InputUpdateFromVectorDakota(int* vector, int name, int type); -
issm/trunk/src/c/objects/Node.cpp
r10367 r10576 827 827 } 828 828 /*}}}*/ 829 /*FUNCTION Node::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){{{1*/ 830 void Node::InputUpdateFromMatrixDakota(double* matrix, int nrows, int ncols, int name, int type){ 831 832 /*Nothing updated yet*/ 833 } 834 /*}}}*/ 829 835 /*FUNCTION Node::InputUpdateFromVectorDakota(int* vector, int name, int type){{{1*/ 830 836 void Node::InputUpdateFromVectorDakota(int* vector, int name, int type){ -
issm/trunk/src/c/objects/Node.h
r10367 r10576 55 55 void InputUpdateFromVector(int* vector, int name, int type); 56 56 void InputUpdateFromVector(bool* vector, int name, int type); 57 void InputUpdateFromMatrixDakota(double* matrix,int nrows, int ncols, int name, int type); 57 58 void InputUpdateFromVectorDakota(double* vector, int name, int type); 58 59 void InputUpdateFromVectorDakota(int* vector, int name, int type); -
issm/trunk/src/c/objects/Update.h
r9761 r10576 19 19 virtual void InputUpdateFromVector(bool* vector, int name, int type)=0; 20 20 #ifdef _HAVE_DAKOTA_ 21 virtual void InputUpdateFromMatrixDakota(double* matrix, int rows, int ncols, int name, int type)=0; 21 22 virtual void InputUpdateFromVectorDakota(double* vector, int name, int type)=0; 22 23 virtual void InputUpdateFromVectorDakota(int* vector, int name, int type)=0;
Note:
See TracChangeset
for help on using the changeset viewer.