Changeset 26004
- Timestamp:
- 02/19/21 22:18:58 (4 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/analyses.m4
r25101 r26004 430 430 AC_MSG_RESULT($HAVE_MELTING) 431 431 dnl }}} 432 dnl with-Sampling{{{ 433 434 AC_ARG_WITH([Sampling], 435 436 AS_HELP_STRING([--with-Sampling = YES], [compile with Sampling capabilities (default is yes)]), 437 438 [SAMPLING=$withval],[SAMPLING=yes]) 439 440 AC_MSG_CHECKING(for Sampling capability compilation) 441 442 443 HAVE_SAMPLING=no 444 445 if test "x$SAMPLING" = "xyes"; then 446 447 HAVE_SAMPLING=yes 448 449 AC_DEFINE([_HAVE_SAMPLING_],[1],[with Sampling capability]) 450 451 fi 452 453 AM_CONDITIONAL([SAMPLING], [test x$HAVE_SAMPLING = xyes]) 454 455 AC_MSG_RESULT($HAVE_SAMPLING) 456 457 dnl }}} 432 458 dnl with-Sealevelrise{{{ 433 459 AC_ARG_WITH([Sealevelrise], -
issm/trunk-jpl/src/c/Makefile.am
r26000 r26004 256 256 ./solutionsequences/solutionsequence_fct.cpp \ 257 257 ./solutionsequences/solutionsequence_schurcg.cpp \ 258 ./solutionsequences/solutionsequence_sampling.cpp \ 258 259 ./solutionsequences/convergence.cpp \ 259 260 ./classes/Options/Options.cpp \ … … 548 549 endif 549 550 #}}} 551 #Sampling sources {{{ 552 if SAMPLING 553 issm_sources += \ 554 ./cores/sampling_core.cpp \ 555 ./analyses/SamplingAnalysis.cpp 556 endif 550 557 #Slr sources {{{ 551 558 if SEALEVELRISE -
issm/trunk-jpl/src/c/analyses/EnumToAnalysis.cpp
r25947 r26004 104 104 case MeltingAnalysisEnum : return new MeltingAnalysis(); 105 105 #endif 106 #ifdef _HAVE_SAMPLING_ 107 case SamplingAnalysisEnum : return new SamplingAnalysis(); 108 #endif 106 109 #ifdef _HAVE_SEALEVELRISE_ 107 110 case SealevelchangeAnalysisEnum : return new SealevelchangeAnalysis(); -
issm/trunk-jpl/src/c/analyses/SamplingAnalysis.cpp
r26003 r26004 76 76 iomodel->FetchDataToInput(inputs,elements,"md.sampling.kappa",SamplingKappaEnum); 77 77 iomodel->FetchDataToInput(inputs,elements,"md.sampling.beta",SamplingBetaEnum,0.); 78 iomodel->FetchDataToInput(inputs,elements,"md.initialization.sample",SampleEnum,0.);78 //iomodel->FetchDataToInput(inputs,elements,"md.initialization.sample",SampleEnum,0.); 79 79 80 80 }/*}}}*/ -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r25956 r26004 832 832 case EsaSolutionEnum: 833 833 analyses_temp[numanalyses++]=EsaAnalysisEnum; 834 break; 835 836 case SamplingSolutionEnum: 837 analyses_temp[numanalyses++]=SamplingAnalysisEnum; 834 838 break; 835 839 … … 4828 4832 IssmDouble* bslcice_partition_serial=NULL; 4829 4833 IssmDouble* partitionice=NULL; 4830 int npartice,nel; 4834 int npartice,nel; 4831 4835 4832 4836 Vector<IssmDouble>* bslchydro_partition=NULL; 4833 4837 IssmDouble* bslchydro_partition_serial=NULL; 4834 4838 IssmDouble* partitionhydro=NULL; 4835 int nparthydro; 4836 4839 int nparthydro; 4840 4837 4841 4838 4842 /*Initialize temporary vector that will be used to sum barystatic components … … 5105 5109 pUp->SetValues(gsize,indices,Up,ADD_VAL); 5106 5110 pUp->Assemble(); 5107 5111 5108 5112 5109 5113 /*Add RSL to Up to find the geoid: */ -
issm/trunk-jpl/src/c/classes/Profiler.h
r25539 r26004 27 27 #define ESACORE 14 /*Profiling ESA */ 28 28 #define SLRCORE 15 /*Profiling SLR */ 29 #define MPISERIAL 16 /*Profiling MPISerial */ 30 #define SEDLOOP 17 /*Profiling MPISerial */ 31 #define SEDMatrix 18 /*Profiling MPISerial */ 32 #define SEDUpdate 19 /*Profiling MPISerial */ 33 #define EPLLOOP 20 /*Profiling MPISerial */ 34 #define EPLMasking 21 /*Profiling MPISerial */ 35 #define EPLMatrices 22 /*Profiling MPISerial */ 36 #define EPLUpdate 23 /*Profiling MPISerial */ 37 #define MAXPROFSIZE 24 /*Used to initialize static arrays*/ 29 #define SAMPLINGCORE 16 /*Profiling SAMPLING */ 30 #define MPISERIAL 17 /*Profiling MPISerial */ 31 #define SEDLOOP 18 /*Profiling MPISerial */ 32 #define SEDMatrix 19 /*Profiling MPISerial */ 33 #define SEDUpdate 20 /*Profiling MPISerial */ 34 #define EPLLOOP 21 /*Profiling MPISerial */ 35 #define EPLMasking 22 /*Profiling MPISerial */ 36 #define EPLMatrices 23 /*Profiling MPISerial */ 37 #define EPLUpdate 24 /*Profiling MPISerial */ 38 #define MAXPROFSIZE 25 /*Used to initialize static arrays*/ 38 39 39 40 -
issm/trunk-jpl/src/c/cores/CorePointerFromSolutionEnum.cpp
r25947 r26004 1 1 /*!\file: CorePointerFromSolutionEnum.cpp 2 2 * \brief: return type of analyses, number of analyses and core solution function. 3 */ 3 */ 4 4 5 5 #ifdef HAVE_CONFIG_H … … 82 82 #endif 83 83 break; 84 case SamplingSolutionEnum: 85 solutioncore=&sampling_core; 86 break; 84 87 85 88 default: -
issm/trunk-jpl/src/c/cores/cores.h
r25956 r26004 1 1 /* 2 * cores.h: 2 * cores.h: 3 3 */ 4 4 … … 54 54 void bmb_core(FemModel* femmodel); 55 55 void damage_core(FemModel* femmodel); 56 void sampling_core(FemModel* femmodel); 56 57 57 58 /*sealevel change cores:*/ -
issm/trunk-jpl/src/c/shared/Enum/Enum.vim
r26002 r26004 1307 1307 syn keyword cConstant RecoveryAnalysisEnum 1308 1308 syn keyword cConstant RiftfrontEnum 1309 syn keyword cConstant SamplingAnalysisEnum 1310 syn keyword cConstant SamplingSolutionEnum 1309 1311 syn keyword cConstant SIAApproximationEnum 1310 1312 syn keyword cConstant SMBcomponentsEnum -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r26002 r26004 1306 1306 RecoveryAnalysisEnum, 1307 1307 RiftfrontEnum, 1308 SamplingAnalysisEnum, 1309 SamplingSolutionEnum, 1308 1310 SIAApproximationEnum, 1309 1311 SMBcomponentsEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r26002 r26004 1309 1309 case RecoveryAnalysisEnum : return "RecoveryAnalysis"; 1310 1310 case RiftfrontEnum : return "Riftfront"; 1311 case SamplingAnalysisEnum : return "SamplingAnalysis"; 1312 case SamplingSolutionEnum : return "SamplingSolution"; 1311 1313 case SIAApproximationEnum : return "SIAApproximation"; 1312 1314 case SMBcomponentsEnum : return "SMBcomponents"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r26002 r26004 1339 1339 else if (strcmp(name,"RecoveryAnalysis")==0) return RecoveryAnalysisEnum; 1340 1340 else if (strcmp(name,"Riftfront")==0) return RiftfrontEnum; 1341 else if (strcmp(name,"SamplingAnalysis")==0) return SamplingAnalysisEnum; 1342 else if (strcmp(name,"SamplingSolution")==0) return SamplingSolutionEnum; 1341 1343 else if (strcmp(name,"SIAApproximation")==0) return SIAApproximationEnum; 1342 1344 else if (strcmp(name,"SMBcomponents")==0) return SMBcomponentsEnum; … … 1365 1367 else if (strcmp(name,"SealevelUmotion")==0) return SealevelUmotionEnum; 1366 1368 else if (strcmp(name,"SealevelchangeAnalysis")==0) return SealevelchangeAnalysisEnum; 1367 else if (strcmp(name,"SealevelchangeSolution")==0) return SealevelchangeSolutionEnum;1368 else if (strcmp(name,"Seg")==0) return SegEnum;1369 1369 else stage=12; 1370 1370 } 1371 1371 if(stage==12){ 1372 if (strcmp(name,"SegInput")==0) return SegInputEnum; 1372 if (strcmp(name,"SealevelchangeSolution")==0) return SealevelchangeSolutionEnum; 1373 else if (strcmp(name,"Seg")==0) return SegEnum; 1374 else if (strcmp(name,"SegInput")==0) return SegInputEnum; 1373 1375 else if (strcmp(name,"Segment")==0) return SegmentEnum; 1374 1376 else if (strcmp(name,"SegmentRiftfront")==0) return SegmentRiftfrontEnum; -
issm/trunk-jpl/src/c/solutionsequences/solutionsequences.h
r24080 r26004 1 1 /* 2 * solutionsequences.h: 2 * solutionsequences.h: 3 3 */ 4 4 … … 25 25 void solutionsequence_adjoint_linear(FemModel* femmodel); 26 26 void solutionsequence_schurcg(FemModel* femmodel); 27 void solutionsequence_sampling(FemModel* femmodel); 27 28 28 29 /*convergence*/ -
issm/trunk-jpl/src/m/solve/solve.m
r25955 r26004 23 23 % - 'Esa' or 'esa' 24 24 % - 'Sealevelchange' or 'slc' 25 % - 'Sampling' or 'smp' 25 26 % 26 27 % Extra options: … … 75 76 elseif strcmpi(solutionstring,'slc') || strcmpi(solutionstring,'Sealevelchange') 76 77 solutionstring = 'SealevelchangeSolution'; 78 elseif strcmpi(solutionstring,'smp') || strcmpi(solutionstring,'Sampling') 79 solutionstring = 'SamplingSolution'; 77 80 else 78 81 error(['solutionstring ' solutionstring ' not supported!']);
Note:
See TracChangeset
for help on using the changeset viewer.