Skip to content
Snippets Groups Projects
Commit 65727749 authored by rhenry2's avatar rhenry2
Browse files

no message

parent 6446af5f
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@ import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import ac.ed.lurg.utils.LogWriter;
public class Timestep {
......@@ -85,9 +87,14 @@ public class Timestep {
}
public String getYearSubDir(String rootDir) {
if (ModelConfig.CHANGE_YIELD_DATA_YEAR)
return rootDir + File.separator + getYieldYear();
int startOfYield = getYieldYear()-4;
if (ModelConfig.CHANGE_YIELD_DATA_YEAR){
return rootDir + File.separator + startOfYield+"-"+getYieldYear();
}
else
return rootDir + File.separator + ModelConfig.BASE_YEAR;
return rootDir + File.separator + (ModelConfig.BASE_YEAR-4)+"-"+ModelConfig.BASE_YEAR;
//return rootDir + File.separator +ModelConfig.BASE_YEAR;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment