Skip to content

Commit

Permalink
added: command line parameter to use reduced continuity (TH) elements
Browse files Browse the repository at this point in the history
use -mixed full use the FRTH elements.
  • Loading branch information
akva2 authored and kmokstad committed Sep 10, 2018
1 parent 1352cc0 commit 527d331
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Test/Miehe71-explcrack-mixed_FDporo.reg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Miehe71.xinp -qstatic -explcrack -poro -mixed -nGauss 3
Miehe71.xinp -qstatic -explcrack -poro -mixed full -nGauss 3

Input file: Miehe71.xinp
Equation solver: 2
Expand Down
2 changes: 1 addition & 1 deletion Test/Miehe71-mixed_FDporo.reg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Miehe71.xinp -qstatic -poro -mixed -nGauss 3
Miehe71.xinp -qstatic -poro -mixed full -nGauss 3

Input file: Miehe71.xinp
Equation solver: 2
Expand Down
2 changes: 1 addition & 1 deletion Test/Miehe71-nocrack-mixed_FDporo.reg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Miehe71.xinp -qstatic -nocrack -poro -mixed -nGauss 3
Miehe71.xinp -qstatic -nocrack -poro -mixed full -nGauss 3

Input file: Miehe71.xinp
Equation solver: 2
Expand Down
8 changes: 6 additions & 2 deletions main_FractureDynamics.C
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,12 @@ int main (int argc, char** argv)
; // ignore the input file on the second pass
else if (SIMoptions::ignoreOldOptions(argc,argv,i))
; // ignore the obsolete option
else if (!strcmp(argv[i],"-mixed"))
ASMmxBase::Type = ASMmxBase::FULL_CONT_RAISE_BASIS1;
else if (!strcmp(argv[i],"-mixed")) {
ASMmxBase::Type = ASMmxBase::REDUCED_CONT_RAISE_BASIS1;
if (i < argc-1 && argv[i+1][0] != '-')
if (strcmp(argv[++i],"full") == 0)
ASMmxBase::Type = ASMmxBase::FULL_CONT_RAISE_BASIS1;
}
else if (!strcmp(argv[i],"-principal"))
Elasticity::wantPrincipalStress = true;
else if (!strncmp(argv[i],"-dbgEl",6) && i < argc-1)
Expand Down

0 comments on commit 527d331

Please sign in to comment.