Changeset 3332 for issm/trunk/src/c/objects/Riftfront.cpp
- Timestamp:
- 03/24/10 16:53:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Riftfront.cpp
r3201 r3332 202 202 /*Object functions*/ 203 203 /*FUNCTION Riftfront::Configure {{{1*/ 204 #undef __FUNCT__205 #define __FUNCT__ "Riftfront::Configure"206 204 void Riftfront::Configure(void* pelementsin,void* pnodesin,void* pmaterialsin){ 207 205 … … 224 222 #define _ZIGZAGCOUNTER_ 225 223 226 #undef __FUNCT__227 #define __FUNCT__ "Riftfront::Constrain"228 224 int Riftfront::Constrain(int* punstable, void* vinputs, int analysis_type){ 229 225 … … 249 245 /*First recover parameter inputs: */ 250 246 found=inputs->Recover("velocity",&vxvy_list[0][0],2,dofs,numgrids,(void**)nodes); 251 if(!found) throw ErrorException(__FUNCT__," could not find velocity in inputs!");247 if(!found)ISSMERROR(" could not find velocity in inputs!"); 252 248 253 249 … … 294 290 /*}}}1*/ 295 291 /*FUNCTION Riftfront::CreateKMatrix {{{1*/ 296 #undef __FUNCT__297 #define __FUNCT__ "Riftfront::CreateKMatrix"298 292 void Riftfront::CreateKMatrix(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type){ 299 293 /*do nothing: */ … … 301 295 /*}}}1*/ 302 296 /*FUNCTION Riftfront::CreatePVector {{{1*/ 303 #undef __FUNCT__304 #define __FUNCT__ "Riftfront::CreatePVector"305 297 void Riftfront::CreatePVector(Vec pg, void* inputs, int analysis_type,int sub_analysis_type){ 306 298 /*do nothing: */ … … 373 365 /*}}}1*/ 374 366 /*FUNCTION Riftfront::GetDofList {{{1*/ 375 #undef __FUNCT__376 #define __FUNCT__ "Riftfront::GetDofList"377 367 378 368 void Riftfront::GetDofList(int* doflist,int* pnumberofdofspernode){ … … 402 392 /*}}}1*/ 403 393 /*FUNCTION Riftfront::IsMaterialStable {{{1*/ 404 #undef __FUNCT__405 #define __FUNCT__ "Riftfront::IsMaterialStable"406 394 int Riftfront::IsMaterialStable(void* vinputs, int analysis_type){ 407 395 … … 413 401 414 402 found=inputs->Recover("converged",&converged); 415 if(!found) throw ErrorException(__FUNCT__," could not find converged flag in inputs!");403 if(!found)ISSMERROR(" could not find converged flag in inputs!"); 416 404 417 405 if(converged){ … … 426 414 /*}}}1*/ 427 415 /*FUNCTION Riftfront::MaxPenetration {{{1*/ 428 #undef __FUNCT__429 #define __FUNCT__ "Riftfront::MaxPenetration"430 416 int Riftfront::MaxPenetration(double* ppenetration, void* vinputs, int analysis_type){ 431 417 … … 445 431 446 432 found=inputs->Recover("velocity",&vxvy_list[0][0],2,dofs,numgrids,(void**)nodes); 447 if(!found) throw ErrorException(__FUNCT__," could not find velocity in inputs!");433 if(!found)ISSMERROR(" could not find velocity in inputs!"); 448 434 449 435 /*Grid 1 faces grid2, compute penetration of 2 into 1 (V2-V1).N (with N normal vector, and V velocity vector: */ … … 468 454 /*}}}1*/ 469 455 /*FUNCTION Riftfront::OutputProperties {{{1*/ 470 #undef __FUNCT__471 #define __FUNCT__ "Riftfront::OutputProperties"472 456 void Riftfront::OutputProperties(Vec riftproperties){ 473 457 … … 484 468 /*}}}1*/ 485 469 /*FUNCTION Riftfront::PenaltyCreateKMatrix {{{1*/ 486 #undef __FUNCT__487 #define __FUNCT__ "Riftfront::PenaltyCreateKMatrix"488 470 void Riftfront::PenaltyCreateKMatrix(Mat Kgg,void* vinputs,double kmax,int analysis_type,int sub_analysis_type){ 489 471 … … 519 501 /*Recover input parameters: */ 520 502 inputs->Recover("thickness",&h[0],1,dofs,MAX_RIFTFRONT_GRIDS,(void**)nodes); 521 if (h[0]!=h[1]) throw ErrorException(__FUNCT__," different thicknesses not supported for rift fronts");503 if (h[0]!=h[1])ISSMERROR(" different thicknesses not supported for rift fronts"); 522 504 thickness=h[0]; 523 505 … … 583 565 /*}}}1*/ 584 566 /*FUNCTION Riftfront::PenaltyCreatePVector {{{1*/ 585 #undef __FUNCT__586 #define __FUNCT__ "Riftfront::PenaltyCreatePVector"587 567 void Riftfront::PenaltyCreatePVector(Vec pg,void* vinputs,double kmax,int analysis_type,int sub_analysis_type){ 588 568 … … 632 612 /*get thickness: */ 633 613 inputs->Recover("thickness",&h[0],1,dofs,MAX_RIFTFRONT_GRIDS,(void**)nodes); 634 if (h[0]!=h[1]) throw ErrorException(__FUNCT__," different thicknesses not supported for rift fronts");614 if (h[0]!=h[1])ISSMERROR(" different thicknesses not supported for rift fronts"); 635 615 thickness=h[0]; 636 616 637 617 inputs->Recover("bed",&b[0],1,dofs,MAX_RIFTFRONT_GRIDS,(void**)nodes); 638 if (b[0]!=b[1]) throw ErrorException(__FUNCT__," different beds not supported for rift fronts");618 if (b[0]!=b[1])ISSMERROR(" different beds not supported for rift fronts"); 639 619 bed=b[0]; 640 620 … … 658 638 else if(fill==MelangeEnum()){ //icefront finding itself against another icefront (pressure imbalance is fully compensated, ice vs ice) 659 639 660 if(!shelf) throw ErrorException(__FUNCT__,exprintf("%s%s%i%s",__FUNCT__," error message:fill type ",fill," not supported on ice sheets yet."));640 if(!shelf) ISSMERROR(exprintf("%s%i%s","fill type ",fill," not supported on ice sheets yet.")); 661 641 662 642 pressure_litho=rho_ice*gravity*pow(thickness,(double)2)/(double)2; … … 668 648 } 669 649 else{ 670 throw ErrorException(__FUNCT__,exprintf("%s%s%i%s",__FUNCT__," error message:fill type ",fill," not supported yet."));650 ISSMERROR(exprintf("%s%i%s","fill type ",fill," not supported yet.")); 671 651 } 672 652 … … 690 670 /*}}}1*/ 691 671 /*FUNCTION Riftfront::Penetration {{{1*/ 692 #undef __FUNCT__693 #define __FUNCT__ "Riftfront::Penetration"694 672 int Riftfront::Penetration(double* ppenetration, void* vinputs, int analysis_type){ 695 673 … … 707 685 708 686 found=inputs->Recover("velocity",&vxvy_list[0][0],2,dofs,numgrids,(void**)nodes); 709 if(!found) throw ErrorException(__FUNCT__," could not find velocity in inputs!");687 if(!found)ISSMERROR(" could not find velocity in inputs!"); 710 688 711 689 /*Grid 1 faces grid2, compute penetration of 2 into 1 (V2-V1).N (with N normal vector, and V velocity vector: */ … … 722 700 /*FUNCTION Riftfront::PotentialUnstableC 723 701 * nstraint {{{1*/ 724 #undef __FUNCT__725 #define __FUNCT__ "Riftfront::PotentialUnstableConstraint"726 702 int Riftfront::PotentialUnstableConstraint(int* punstable, void* vinputs, int analysis_type){ 727 703 … … 741 717 742 718 found=inputs->Recover("velocity",&vxvy_list[0][0],2,dofs,numgrids,(void**)nodes); 743 if(!found) throw ErrorException(__FUNCT__," could not find velocity in inputs!");719 if(!found)ISSMERROR(" could not find velocity in inputs!"); 744 720 745 721 /*Grid 1 faces grid2, compute penetration of 2 into 1 (V2-V1).N (with N normal vector, and V velocity vector: */ … … 764 740 /*}}}1*/ 765 741 /*FUNCTION Riftfront::PreConstrain {{{1*/ 766 #undef __FUNCT__767 #define __FUNCT__ "Riftfront::PreConstrain"768 742 int Riftfront::PreConstrain(int* punstable, void* vinputs, int analysis_type){ 769 743 … … 780 754 /*First recover velocity: */ 781 755 found=inputs->Recover("velocity",&vxvy_list[0][0],2,dofs,numgrids,(void**)nodes); 782 if(!found) throw ErrorException(__FUNCT__," could not find velocity in inputs!");756 if(!found)ISSMERROR(" could not find velocity in inputs!"); 783 757 784 758 /*Grid 1 faces grid2, compute penetration of 2 into 1 (V2-V1).N (with N normal vector, and V velocity vector: */ … … 828 802 /*}}}1*/ 829 803 /*FUNCTION Riftfront::UpdateFromInputs {{{1*/ 830 #undef __FUNCT__831 #define __FUNCT__ "Riftfront::UpdateFromInputs"832 804 void Riftfront::UpdateFromInputs(void* vinputs){ 833 805 … … 844 816 /*}}}1*/ 845 817 /*FUNCTION Riftfront::FreezeConstraints{{{1*/ 846 #undef __FUNCT__847 #define __FUNCT__ "Riftfront::FreezeConstraints"848 818 void Riftfront::FreezeConstraints(void* vinputs, int analysis_type){ 849 819 … … 854 824 /*}}}1*/ 855 825 /*FUNCTION Riftfront::IsFrozen{{{1*/ 856 #undef __FUNCT__857 #define __FUNCT__ "Riftfront::IsFrozen"858 826 bool Riftfront::IsFrozen(void){ 859 827
Note:
See TracChangeset
for help on using the changeset viewer.