-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from Burke-Lauenroth-Lab/bugfix_113
New function 'Reset_SOILWAT2_after_UnitTest' for unit testing
- Loading branch information
Showing
5 changed files
with
61 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#include "gtest/gtest.h" | ||
#include <assert.h> | ||
#include <ctype.h> | ||
#include <dirent.h> | ||
#include <errno.h> | ||
#include <float.h> | ||
#include <math.h> | ||
#include <memory.h> | ||
#include <stdarg.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <sys/stat.h> | ||
#include <sys/types.h> | ||
#include <time.h> | ||
#include <unistd.h> | ||
|
||
#include "../generic.h" | ||
#include "../myMemory.h" | ||
#include "../filefuncs.h" | ||
#include "../rands.h" | ||
#include "../Times.h" | ||
#include "../SW_Defines.h" | ||
#include "../SW_Times.h" | ||
#include "../SW_Files.h" | ||
#include "../SW_Carbon.h" | ||
#include "../SW_Site.h" | ||
#include "../SW_VegProd.h" | ||
#include "../SW_VegEstab.h" | ||
#include "../SW_Model.h" | ||
#include "../SW_SoilWater.h" | ||
#include "../SW_Weather.h" | ||
#include "../SW_Markov.h" | ||
#include "../SW_Sky.h" | ||
#include "../SW_Control.h" | ||
|
||
#include "sw_testhelpers.h" | ||
|
||
extern char _firstfile[]; | ||
|
||
/** Initialize SOILWAT2 variables and read values from example input file | ||
*/ | ||
void Reset_SOILWAT2_after_UnitTest(void) { | ||
SW_CTL_init_model(_firstfile); | ||
SW_CTL_obtain_inputs(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "gtest/gtest.h" | ||
|
||
|
||
void Reset_SOILWAT2_after_UnitTest(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters