Skip to content

Commit 1ba1588

Browse files
CHG: adding Enum
1 parent e85e0db commit 1ba1588

File tree

6 files changed

+25
-17
lines changed

6 files changed

+25
-17
lines changed

src/c/shared/Enum/Enum.vim

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,6 +3369,7 @@ syn keyword cConstant AmrBamgEnum
33693369
syn keyword cConstant AmrNeopzEnum
33703370
syn keyword cConstant ArrheniusEnum
33713371
syn keyword cConstant AutodiffJacobianEnum
3372+
syn keyword cConstant AverageButtressingEnum
33723373
syn keyword cConstant Balancethickness2AnalysisEnum
33733374
syn keyword cConstant Balancethickness2SolutionEnum
33743375
syn keyword cConstant BalancethicknessAnalysisEnum
@@ -3795,15 +3796,16 @@ syn keyword cType Cfsurfacelogvel
37953796
syn keyword cType Cfsurfacesquare
37963797
syn keyword cType Cfsurfacesquaretransient
37973798
syn keyword cType Channel
3799+
syn keyword cType classes
37983800
syn keyword cType Constraint
37993801
syn keyword cType Constraints
38003802
syn keyword cType Contour
38013803
syn keyword cType Contours
38023804
syn keyword cType ControlInput
38033805
syn keyword cType ControlParam
38043806
syn keyword cType Covertree
3805-
syn keyword cType DataSetParam
38063807
syn keyword cType DatasetInput
3808+
syn keyword cType DataSetParam
38073809
syn keyword cType Definition
38083810
syn keyword cType DependentObject
38093811
syn keyword cType DoubleInput
@@ -3816,19 +3818,20 @@ syn keyword cType Element
38163818
syn keyword cType ElementHook
38173819
syn keyword cType ElementInput
38183820
syn keyword cType ElementMatrix
3819-
syn keyword cType ElementVector
38203821
syn keyword cType Elements
3822+
syn keyword cType ElementVector
38213823
syn keyword cType ExponentialVariogram
38223824
syn keyword cType ExternalResult
38233825
syn keyword cType FemModel
38243826
syn keyword cType FileParam
38253827
syn keyword cType Friction
38263828
syn keyword cType Gauss
3829+
syn keyword cType GaussianVariogram
3830+
syn keyword cType gaussobjects
38273831
syn keyword cType GaussPenta
38283832
syn keyword cType GaussSeg
38293833
syn keyword cType GaussTetra
38303834
syn keyword cType GaussTria
3831-
syn keyword cType GaussianVariogram
38323835
syn keyword cType GenericExternalResult
38333836
syn keyword cType GenericOption
38343837
syn keyword cType GenericParam
@@ -3845,6 +3848,7 @@ syn keyword cType IntVecParam
38453848
syn keyword cType IoModel
38463849
syn keyword cType IssmDirectApplicInterface
38473850
syn keyword cType IssmParallelDirectApplicInterface
3851+
syn keyword cType krigingobjects
38483852
syn keyword cType Load
38493853
syn keyword cType Loads
38503854
syn keyword cType Masscon
@@ -3855,6 +3859,7 @@ syn keyword cType Materials
38553859
syn keyword cType Matestar
38563860
syn keyword cType Matice
38573861
syn keyword cType Matlitho
3862+
syn keyword cType matrixobjects
38583863
syn keyword cType MatrixParam
38593864
syn keyword cType Misfit
38603865
syn keyword cType Moulin
@@ -3881,13 +3886,13 @@ syn keyword cType Quadtree
38813886
syn keyword cType Radar
38823887
syn keyword cType Regionaloutput
38833888
syn keyword cType Results
3884-
syn keyword cType RiftStruct
38853889
syn keyword cType Riftfront
3890+
syn keyword cType RiftStruct
38863891
syn keyword cType SealevelGeometry
38873892
syn keyword cType Seg
38883893
syn keyword cType SegInput
3889-
syn keyword cType SegRef
38903894
syn keyword cType Segment
3895+
syn keyword cType SegRef
38913896
syn keyword cType SpcDynamic
38923897
syn keyword cType SpcStatic
38933898
syn keyword cType SpcTransient
@@ -3908,10 +3913,6 @@ syn keyword cType Variogram
39083913
syn keyword cType VectorParam
39093914
syn keyword cType Vertex
39103915
syn keyword cType Vertices
3911-
syn keyword cType classes
3912-
syn keyword cType gaussobjects
3913-
syn keyword cType krigingobjects
3914-
syn keyword cType matrixobjects
39153916
syn keyword cType AdjointBalancethickness2Analysis
39163917
syn keyword cType AdjointBalancethicknessAnalysis
39173918
syn keyword cType AdjointHorizAnalysis

src/c/shared/Enum/EnumDefinitions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,6 +3368,7 @@ enum definitions{
33683368
AmrNeopzEnum,
33693369
ArrheniusEnum,
33703370
AutodiffJacobianEnum,
3371+
AverageButtressingEnum,
33713372
Balancethickness2AnalysisEnum,
33723373
Balancethickness2SolutionEnum,
33733374
BalancethicknessAnalysisEnum,

src/c/shared/Enum/EnumToStringx.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,6 +3371,7 @@ const char* EnumToStringx(int en){
33713371
case AmrNeopzEnum : return "AmrNeopz";
33723372
case ArrheniusEnum : return "Arrhenius";
33733373
case AutodiffJacobianEnum : return "AutodiffJacobian";
3374+
case AverageButtressingEnum : return "AverageButtressing";
33743375
case Balancethickness2AnalysisEnum : return "Balancethickness2Analysis";
33753376
case Balancethickness2SolutionEnum : return "Balancethickness2Solution";
33763377
case BalancethicknessAnalysisEnum : return "BalancethicknessAnalysis";

src/c/shared/Enum/Enumjl.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,6 +3362,7 @@ syn keyword juliaConstC AmrBamgEnum
33623362
syn keyword juliaConstC AmrNeopzEnum
33633363
syn keyword juliaConstC ArrheniusEnum
33643364
syn keyword juliaConstC AutodiffJacobianEnum
3365+
syn keyword juliaConstC AverageButtressingEnum
33653366
syn keyword juliaConstC Balancethickness2AnalysisEnum
33663367
syn keyword juliaConstC Balancethickness2SolutionEnum
33673368
syn keyword juliaConstC BalancethicknessAnalysisEnum

src/c/shared/Enum/StringToEnumx.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,15 +3452,16 @@ int StringToEnumx(const char* name,bool notfounderror){
34523452
else if (strcmp(name,"AmrNeopz")==0) return AmrNeopzEnum;
34533453
else if (strcmp(name,"Arrhenius")==0) return ArrheniusEnum;
34543454
else if (strcmp(name,"AutodiffJacobian")==0) return AutodiffJacobianEnum;
3455+
else if (strcmp(name,"AverageButtressing")==0) return AverageButtressingEnum;
34553456
else if (strcmp(name,"Balancethickness2Analysis")==0) return Balancethickness2AnalysisEnum;
34563457
else if (strcmp(name,"Balancethickness2Solution")==0) return Balancethickness2SolutionEnum;
34573458
else if (strcmp(name,"BalancethicknessAnalysis")==0) return BalancethicknessAnalysisEnum;
34583459
else if (strcmp(name,"BalancethicknessApparentMassbalance")==0) return BalancethicknessApparentMassbalanceEnum;
3459-
else if (strcmp(name,"BalancethicknessSoftAnalysis")==0) return BalancethicknessSoftAnalysisEnum;
34603460
else stage=29;
34613461
}
34623462
if(stage==29){
3463-
if (strcmp(name,"BalancethicknessSoftSolution")==0) return BalancethicknessSoftSolutionEnum;
3463+
if (strcmp(name,"BalancethicknessSoftAnalysis")==0) return BalancethicknessSoftAnalysisEnum;
3464+
else if (strcmp(name,"BalancethicknessSoftSolution")==0) return BalancethicknessSoftSolutionEnum;
34643465
else if (strcmp(name,"BalancethicknessSolution")==0) return BalancethicknessSolutionEnum;
34653466
else if (strcmp(name,"BalancevelocityAnalysis")==0) return BalancevelocityAnalysisEnum;
34663467
else if (strcmp(name,"BalancevelocitySolution")==0) return BalancevelocitySolutionEnum;
@@ -3579,11 +3580,11 @@ int StringToEnumx(const char* name,bool notfounderror){
35793580
else if (strcmp(name,"GroundedArea")==0) return GroundedAreaEnum;
35803581
else if (strcmp(name,"GroundedAreaScaled")==0) return GroundedAreaScaledEnum;
35813582
else if (strcmp(name,"GroundingOnly")==0) return GroundingOnlyEnum;
3582-
else if (strcmp(name,"GroundinglineMassFlux")==0) return GroundinglineMassFluxEnum;
35833583
else stage=30;
35843584
}
35853585
if(stage==30){
3586-
if (strcmp(name,"Gset")==0) return GsetEnum;
3586+
if (strcmp(name,"GroundinglineMassFlux")==0) return GroundinglineMassFluxEnum;
3587+
else if (strcmp(name,"Gset")==0) return GsetEnum;
35873588
else if (strcmp(name,"Gsl")==0) return GslEnum;
35883589
else if (strcmp(name,"HOApproximation")==0) return HOApproximationEnum;
35893590
else if (strcmp(name,"HOFSApproximation")==0) return HOFSApproximationEnum;
@@ -3702,11 +3703,11 @@ int StringToEnumx(const char* name,bool notfounderror){
37023703
else if (strcmp(name,"Mumps")==0) return MumpsEnum;
37033704
else if (strcmp(name,"NoFrictionOnPartiallyFloating")==0) return NoFrictionOnPartiallyFloatingEnum;
37043705
else if (strcmp(name,"NoMeltOnPartiallyFloating")==0) return NoMeltOnPartiallyFloatingEnum;
3705-
else if (strcmp(name,"Nodal")==0) return NodalEnum;
37063706
else stage=31;
37073707
}
37083708
if(stage==31){
3709-
if (strcmp(name,"Nodalvalue")==0) return NodalvalueEnum;
3709+
if (strcmp(name,"Nodal")==0) return NodalEnum;
3710+
else if (strcmp(name,"Nodalvalue")==0) return NodalvalueEnum;
37103711
else if (strcmp(name,"NodeSId")==0) return NodeSIdEnum;
37113712
else if (strcmp(name,"NoneApproximation")==0) return NoneApproximationEnum;
37123713
else if (strcmp(name,"None")==0) return NoneEnum;
@@ -3825,11 +3826,11 @@ int StringToEnumx(const char* name,bool notfounderror){
38253826
else if (strcmp(name,"TotalCalvingMeltingFluxLevelset")==0) return TotalCalvingMeltingFluxLevelsetEnum;
38263827
else if (strcmp(name,"TotalFloatingBmb")==0) return TotalFloatingBmbEnum;
38273828
else if (strcmp(name,"TotalFloatingBmbScaled")==0) return TotalFloatingBmbScaledEnum;
3828-
else if (strcmp(name,"TotalGroundedBmb")==0) return TotalGroundedBmbEnum;
38293829
else stage=32;
38303830
}
38313831
if(stage==32){
3832-
if (strcmp(name,"TotalGroundedBmbScaled")==0) return TotalGroundedBmbScaledEnum;
3832+
if (strcmp(name,"TotalGroundedBmb")==0) return TotalGroundedBmbEnum;
3833+
else if (strcmp(name,"TotalGroundedBmbScaled")==0) return TotalGroundedBmbScaledEnum;
38333834
else if (strcmp(name,"TotalSmb")==0) return TotalSmbEnum;
38343835
else if (strcmp(name,"TotalSmbScaled")==0) return TotalSmbScaledEnum;
38353836
else if (strcmp(name,"TotalSmbRefreeze")==0) return TotalSmbRefreezeEnum;

src/c/shared/Enum/issmenums.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,6 +3358,7 @@
33583358
AmrNeopzEnum
33593359
ArrheniusEnum
33603360
AutodiffJacobianEnum
3361+
AverageButtressingEnum
33613362
Balancethickness2AnalysisEnum
33623363
Balancethickness2SolutionEnum
33633364
BalancethicknessAnalysisEnum
@@ -7124,6 +7125,7 @@ function EnumToString(enum::IssmEnum)
71247125
if(enum==AmrNeopzEnum) return "AmrNeopz" end
71257126
if(enum==ArrheniusEnum) return "Arrhenius" end
71267127
if(enum==AutodiffJacobianEnum) return "AutodiffJacobian" end
7128+
if(enum==AverageButtressingEnum) return "AverageButtressing" end
71277129
if(enum==Balancethickness2AnalysisEnum) return "Balancethickness2Analysis" end
71287130
if(enum==Balancethickness2SolutionEnum) return "Balancethickness2Solution" end
71297131
if(enum==BalancethicknessAnalysisEnum) return "BalancethicknessAnalysis" end
@@ -10890,6 +10892,7 @@ function StringToEnum(name::String)
1089010892
if(name=="AmrNeopz") return AmrNeopzEnum end
1089110893
if(name=="Arrhenius") return ArrheniusEnum end
1089210894
if(name=="AutodiffJacobian") return AutodiffJacobianEnum end
10895+
if(name=="AverageButtressing") return AverageButtressingEnum end
1089310896
if(name=="Balancethickness2Analysis") return Balancethickness2AnalysisEnum end
1089410897
if(name=="Balancethickness2Solution") return Balancethickness2SolutionEnum end
1089510898
if(name=="BalancethicknessAnalysis") return BalancethicknessAnalysisEnum end

0 commit comments

Comments
 (0)