Changeset 27940
- Timestamp:
- 10/05/23 05:04:24 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r27939 r27940 1903 1903 /*Are we in transient or static? */ 1904 1904 if(M==1){ 1905 if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1905 1906 _assert_(N==1); 1906 1907 this->SetElementInput(inputs,vector_enum,vector[0]); … … 1908 1909 1909 1910 else if(M==iomodel->numberofvertices){ 1910 _assert_(N==1);1911 if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1911 1912 for(int i=0;i<NUM_VERTICES;i++) values[i]=vector[vertexids[i]-1]; 1912 1913 this->SetElementInput(inputs,NUM_VERTICES,vertexlids,values,vector_enum); … … 1947 1948 } 1948 1949 else{ 1949 _error_(" Patch interpolation not supported yet");1950 _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1950 1951 } 1951 1952 xDelete<IssmDouble>(evalues); … … 1953 1954 } 1954 1955 else{ 1955 _error_(" nodal vector is either numberofvertices or numberofvertices+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long");1956 _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1956 1957 } 1957 1958 } … … 1960 1961 /*Are we in transient or static? */ 1961 1962 if(M==1){ 1962 _assert_(N==1);1963 if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1963 1964 this->SetElementInput(inputs,vector_enum,vector[0]); 1964 1965 } … … 1982 1983 } 1983 1984 else if(M==iomodel->numberofelements){ 1984 _assert_(N==1);1985 if(N!=1) _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 1985 1986 if (code==5){ //boolean 1986 1987 this->SetBoolInput(inputs,vector_enum,reCast<bool>(vector[this->Sid()])); … … 2011 2012 } 2012 2013 2013 else _error_("element vector is either numberofelements or numberofelements+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long"); 2014 else{ 2015 _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 2016 } 2014 2017 } 2015 2018 else if(vector_type==3){ //Double array matrix … … 2022 2025 xDelete<IssmDouble>(layers); 2023 2026 } 2024 else _error_("element vector is either numberofelements or numberofelements+1 long. Field provided (" << EnumToStringx(vector_enum) << ") is " << M << " long"); 2025 } 2026 else _error_("Cannot add input for vector type " << vector_type << " (not supported)"); 2027 else{ 2028 _error_("Size of Input "<<EnumToStringx(vector_enum)<<" "<<M<<"x"<<N<<" not supported"); 2029 } 2030 } 2031 else{ 2032 _error_("Cannot add input for vector type " << vector_type << " (not supported)"); 2033 } 2027 2034 } 2028 2035 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.