Changeset 18497
- Timestamp:
- 09/10/14 14:14:34 (11 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Materials/Matpar.cpp
r18492 r18497 96 96 break; 97 97 case MatseaiceEnum: 98 iomodel->Constant(&this->rho_ice,MaterialsRhoIceEnum); 98 99 iomodel->Constant(&this->poisson,MaterialsPoissonEnum); 99 100 iomodel->Constant(&this->young_modulus,MaterialsYoungModulusEnum); -
issm/trunk-jpl/src/c/classes/Materials/Matseaice.cpp
r18492 r18497 33 33 } 34 34 /*}}}*/ 35 Matseaice::Matseaice(int mat ice_mid,int index, IoModel* iomodel){/*{{{*/35 Matseaice::Matseaice(int matseaice_mid,int index, IoModel* iomodel){/*{{{*/ 36 36 37 37 /*Intermediaries:*/ 38 int mat ice_eid;38 int matseaice_eid; 39 39 40 40 /*Initialize id*/ 41 this->mid=mat ice_mid;41 this->mid=matseaice_mid; 42 42 43 43 /*Hooks: */ 44 mat ice_eid=index+1;45 this->helement=new Hook(&mat ice_eid,1);44 matseaice_eid=index+1; 45 this->helement=new Hook(&matseaice_eid,1); 46 46 this->element=NULL; 47 47 … … 83 83 84 84 /*Output*/ 85 Matseaice* mat ice=NULL;85 Matseaice* matseaice=NULL; 86 86 87 87 /*Initialize output*/ 88 mat ice=new Matseaice();88 matseaice=new Matseaice(); 89 89 90 90 /*copy fields: */ 91 mat ice->mid=this->mid;92 mat ice->helement=(Hook*)this->helement->copy();93 mat ice->element =(Element*)this->helement->delivers();91 matseaice->mid=this->mid; 92 matseaice->helement=(Hook*)this->helement->copy(); 93 matseaice->element =(Element*)this->helement->delivers(); 94 94 95 return mat ice;95 return matseaice; 96 96 } 97 97 /*}}}*/ … … 99 99 100 100 /*Output*/ 101 Matseaice* mat ice=NULL;101 Matseaice* matseaice=NULL; 102 102 103 103 /*Initialize output*/ 104 mat ice=new Matseaice();104 matseaice=new Matseaice(); 105 105 106 106 /*copy fields: */ 107 mat ice->mid=this->mid;108 mat ice->helement=(Hook*)this->helement->copy();109 mat ice->element =element_in;107 matseaice->mid=this->mid; 108 matseaice->helement=(Hook*)this->helement->copy(); 109 matseaice->element =element_in; 110 110 111 return mat ice;111 return matseaice; 112 112 } 113 113 /*}}}*/ -
issm/trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
r18492 r18497 751 751 SeaiceSpcvxEnum, 752 752 SeaiceSpcvyEnum, 753 SeaiceCoriolisFactorEnum, 753 754 BasalforcingsRhoOceanEnum, 754 755 BasalforcingsOceanCoefEnum, -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r18492 r18497 710 710 case SeaiceSpcvxEnum : return "SeaiceSpcvx"; 711 711 case SeaiceSpcvyEnum : return "SeaiceSpcvy"; 712 case SeaiceCoriolisFactorEnum : return "SeaiceCoriolisFactor"; 712 713 case BasalforcingsRhoOceanEnum : return "BasalforcingsRhoOcean"; 713 714 case BasalforcingsOceanCoefEnum : return "BasalforcingsOceanCoef"; -
issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
r18492 r18497 725 725 else if (strcmp(name,"SeaiceSpcvx")==0) return SeaiceSpcvxEnum; 726 726 else if (strcmp(name,"SeaiceSpcvy")==0) return SeaiceSpcvyEnum; 727 else if (strcmp(name,"SeaiceCoriolisFactor")==0) return SeaiceCoriolisFactorEnum; 727 728 else if (strcmp(name,"BasalforcingsRhoOcean")==0) return BasalforcingsRhoOceanEnum; 728 729 else if (strcmp(name,"BasalforcingsOceanCoef")==0) return BasalforcingsOceanCoefEnum; -
issm/trunk-jpl/src/m/classes/seaice.m
r18494 r18497 6 6 classdef seaice 7 7 properties (SetAccess=public) 8 thickness = NaN; 9 concentration = NaN; 10 spcvx = NaN; 11 spcvy = NaN; 8 thickness = NaN; 9 concentration = NaN; 10 spcvx = NaN; 11 spcvy = NaN; 12 coriolis_factor = NaN; 12 13 end 13 14 methods … … 26 27 md = checkfield(md,'fieldname','seaice.spcvx','size',[md.mesh.numberofvertices 1]); 27 28 md = checkfield(md,'fieldname','seaice.spcvy','size',[md.mesh.numberofvertices 1]); 29 md = checkfield(md,'fieldname','seaice.coriolis_factor','size',[md.mesh.numberofelements 1],'NaN',1,'>=',0); 28 30 end % }}} 29 31 function disp(obj) % {{{ 30 32 disp(sprintf(' seaice parameters:')); 31 33 fielddisplay(obj,'thickness','sea ice thickness [m]'); 34 fielddisplay(obj,'concentration','sea ice concentration (between 0 and 1)'); 32 35 fielddisplay(obj,'spcvx','x-axis velocity constraint (NaN means no constraint) [m/s]'); 33 36 fielddisplay(obj,'spcvy','y-axis velocity constraint (NaN means no constraint) [m/s]'); 37 fielddisplay(obj,'coriolis_factor','factor applied to Coriolis forces (latitude dependent)'); 34 38 end % }}} 35 39 function marshall(obj,md,fid) % {{{ … … 38 42 WriteData(fid,'object',obj,'fieldname','spcvx','format','DoubleMat','mattype',1); 39 43 WriteData(fid,'object',obj,'fieldname','spcvy','format','DoubleMat','mattype',1); 44 WriteData(fid,'object',obj,'fieldname','coriolis_factor','format','DoubleMat','mattype',2); 40 45 end % }}} 41 46 end -
issm/trunk-jpl/src/m/enum/EnumDefinitions.py
r18492 r18497 702 702 def SeaiceSpcvxEnum(): return StringToEnum("SeaiceSpcvx")[0] 703 703 def SeaiceSpcvyEnum(): return StringToEnum("SeaiceSpcvy")[0] 704 def SeaiceCoriolisFactorEnum(): return StringToEnum("SeaiceCoriolisFactor")[0] 704 705 def BasalforcingsRhoOceanEnum(): return StringToEnum("BasalforcingsRhoOcean")[0] 705 706 def BasalforcingsOceanCoefEnum(): return StringToEnum("BasalforcingsOceanCoef")[0]
Note:
See TracChangeset
for help on using the changeset viewer.