|
@@ -110,29 +110,29 @@ int prct2tex(double sand_input, double clay_input, double silt_input)
|
|
|
/*G_message("in prct2tex()"); */
|
|
|
/*setup the 3Dvectors and initialize them */
|
|
|
/* index 0 */
|
|
|
- struct vector cls_clay[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_clay[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 1 */
|
|
|
- struct vector cls_sandy_clay[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_sandy_clay[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 2 */
|
|
|
- struct vector cls_silty_clay[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_silty_clay[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 3 */
|
|
|
- struct vector cls_sandy_clay_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_sandy_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 4 */
|
|
|
- struct vector cls_clay_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 5 */
|
|
|
- struct vector cls_silty_clay_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_silty_clay_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 6 */
|
|
|
- struct vector cls_sand[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_sand[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 7 */
|
|
|
- struct vector cls_loamy_sand[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_loamy_sand[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 8 */
|
|
|
- struct vector cls_sandy_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_sandy_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 9 */
|
|
|
- struct vector cls_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 10 */
|
|
|
- struct vector cls_silt_loam[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_silt_loam[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
/* index 11 */
|
|
|
- struct vector cls_silt[POLYGON_DIMENSION] = { 0.0 };
|
|
|
+ struct vector cls_silt[POLYGON_DIMENSION] = { { 0.0 } };
|
|
|
|
|
|
if ((sand_input + clay_input + silt_input) <= 10.0) {
|
|
|
sand_input = sand_input * 100.0;
|