From 3a98c1ab393d1001cecbc19b0c4f868bafe800ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dr=2E=20rer=2E=20nat=2E=20J=C3=BCrgen=20Mey?=
 <juergen.mey@uni-potsdam.de>
Date: Fri, 29 Oct 2021 11:09:42 +0200
Subject: [PATCH] moved the :dir option of sediment_stock definition from write
 ErosInputs to the template functions

---
 mfiles/writeErosInputs.m | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/mfiles/writeErosInputs.m b/mfiles/writeErosInputs.m
index 2cfe66c..2aaec75 100644
--- a/mfiles/writeErosInputs.m
+++ b/mfiles/writeErosInputs.m
@@ -45,12 +45,6 @@ switch LEM.capacity
     case 0
         LEM.str_nowrite = strcat(LEM.str_nowrite,':capacity');
 end
-% switch LEM.rainfall
-%     case 1
-%         LEM.str_write = strcat(LEM.str_write,':rainfall');
-%     case 0
-%         LEM.str_nowrite = strcat(LEM.str_nowrite,':rainfall');
-% end
 switch LEM.sediment
     case 1
         LEM.str_write = strcat(LEM.str_write,':sediment');
@@ -135,7 +129,7 @@ end
 if isfield(LEM,'rainfall')
 fprintf(fileID, ['rainfall=',num2str(LEM.rainfall),':dir\n']);
 end
-fprintf(fileID, ['input_sediment_concentration=',num2str(LEM.initial_sediment_stock),':dir\n']);
+fprintf(fileID, ['input_sediment_concentration=',num2str(LEM.initial_sediment_stock),'\n']);
 
 % Time
 fprintf(fileID, ['time:end=',num2str(LEM.end),':',LEM.end_option,'\n']);
-- 
GitLab