Skip to content

Commit

Permalink
Use subfolder path to include SOILWAT2 headers
Browse files Browse the repository at this point in the history
- preparing for #483
  • Loading branch information
dschlaep committed Jul 14, 2020
1 parent f2f7df6 commit cf2e00a
Show file tree
Hide file tree
Showing 26 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion ST_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef STEPPE_DEF_H
#define STEPPE_DEF_H

#include "generic.h"
#include "sw_src/generic.h"

/* see #include "ST_structs.h" below */

Expand Down
2 changes: 1 addition & 1 deletion ST_environs.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "ST_steppe.h"
#include "ST_globals.h"
#include "sw_src/pcg/pcg_basic.h"
#include "rands.h"
#include "sw_src/rands.h"
#include "sxw_funcs.h"
#include "sw_src/filefuncs.h"
#include "sw_src/Times.h"
Expand Down
8 changes: 4 additions & 4 deletions ST_grid.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "sw_src/rands.h"
#include "ST_grid.h"
#include "ST_steppe.h"
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "ST_globals.h"
#include "ST_stats.h"
#include "rands.h"
#include "sxw_funcs.h"
#include "ST_initialization.h"
#include "ST_progressBar.h"
Expand Down
10 changes: 5 additions & 5 deletions ST_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#include "ST_defines.h"
#include "sw_src/pcg/pcg_basic.h"
#include "sxw_vars.h"
#include "SW_Site.h"
#include "SW_SoilWater.h"
#include "SW_VegProd.h"
#include "SW_Model.h"
#include "SW_Weather.h"
#include "sw_src/SW_Site.h"
#include "sw_src/SW_SoilWater.h"
#include "sw_src/SW_VegProd.h"
#include "sw_src/SW_Model.h"
#include "sw_src/SW_Weather.h"
#include "ST_seedDispersal.h"

/*********************** Grid Structures ****************************/
Expand Down
4 changes: 2 additions & 2 deletions ST_indivs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <memory.h>
#include "ST_steppe.h"
#include "ST_globals.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"


/******** Modular External Function Declarations ***********/
Expand Down
4 changes: 2 additions & 2 deletions ST_initialization.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include "sw_src/pcg/pcg_basic.h"
#include "sw_src/rands.h"
#include "sxw_funcs.h"
#include "myMemory.h"
#include "filefuncs.h"
#include "sw_src/myMemory.h"
#include "sw_src/filefuncs.h"
#include "ST_progressBar.h"
#include "ST_stats.h"

Expand Down
10 changes: 5 additions & 5 deletions ST_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include <stdlib.h>
#include <stdio.h>
#include "ST_steppe.h"
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "SW_VegProd.h"
#include "SW_Control.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "sw_src/SW_VegProd.h"
#include "sw_src/SW_Control.h"
#include "sw_src/pcg/pcg_basic.h"

#include "sxw_funcs.h"
Expand Down
6 changes: 3 additions & 3 deletions ST_mortality.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

#include "ST_mortality.h"
#include "sw_src/filefuncs.h"
#include "generic.h"
#include "rands.h"
#include "myMemory.h"
#include "sw_src/generic.h"
#include "sw_src/rands.h"
#include "sw_src/myMemory.h"
#include "ST_steppe.h"
#include "ST_globals.h"
#include "sw_src/pcg/pcg_basic.h"
Expand Down
2 changes: 1 addition & 1 deletion ST_mortality.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef MORTALITY_H
#define MORTALITY_H

#include "generic.h"
#include "sw_src/generic.h"
#include "sw_src/pcg/pcg_basic.h"

/* --------------------------- Exported Structs ---------------------------- */
Expand Down
6 changes: 3 additions & 3 deletions ST_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
#include <string.h>
#include "ST_steppe.h"
#include "ST_globals.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"


/******** Modular External Function Declarations ***********/
/* -- truly global functions are declared in functions.h --*/
/***********************************************************/
#include "SW_Model.h"
#include "sw_src/SW_Model.h"
extern SW_MODEL SW_Model;

/*------------------------------------------------------*/
Expand Down
10 changes: 5 additions & 5 deletions ST_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <ctype.h>
#include <errno.h>
#include "ST_steppe.h"
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "rands.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "sw_src/rands.h"
#include "sxw_funcs.h"


Expand Down Expand Up @@ -1242,7 +1242,7 @@ void parm_free_memory( void ) {


#ifdef DEBUG_MEM
#include "myMemory.h"
#include "sw_src/myMemory.h"
/**************************************************************/
void Parm_SetMemoryRefs( void) {
/*======================================================*/
Expand Down
8 changes: 4 additions & 4 deletions ST_resgroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#include <stdio.h>
#include "ST_steppe.h"
#include "ST_globals.h"
#include "myMemory.h"
#include "rands.h"
#include "generic.h"
#include "sw_src/myMemory.h"
#include "sw_src/rands.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "ST_functions.h"
#include "sxw_funcs.h"
Expand Down Expand Up @@ -1254,7 +1254,7 @@ IndivType **RGroup_GetIndivs(GrpIndex rg, const char sort, IntS *num)
}

#ifdef DEBUG_MEM
#include "myMemory.h"
#include "sw_src/myMemory.h"
/*======================================================*/
void RGroup_SetMemoryRefs( void)
{
Expand Down
4 changes: 2 additions & 2 deletions ST_seedDispersal.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "ST_defines.h"
#include "ST_grid.h"
#include "ST_seedDispersal.h"
#include "rands.h"
#include "myMemory.h"
#include "sw_src/rands.h"
#include "sw_src/myMemory.h"

int _do_bulk_dispersal(SppIndex sp);
void _do_precise_dispersal(int leftoverSeeds, SppIndex sp);
Expand Down
6 changes: 3 additions & 3 deletions ST_species.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include "ST_steppe.h"
#include "ST_globals.h"
#include "sw_src/filefuncs.h"
#include "myMemory.h"
#include "rands.h"
#include "sw_src/myMemory.h"
#include "sw_src/rands.h"
#include "sw_src/pcg/pcg_basic.h"
#include "ST_initialization.h"
#include "ST_seedDispersal.h"
Expand Down Expand Up @@ -628,7 +628,7 @@ void save_annual_species_relsize() {
}

#ifdef DEBUG_MEM
#include "myMemory.h"
#include "sw_src/myMemory.h"
/*======================================================*/
void Species_SetMemoryRefs( void)
{
Expand Down
4 changes: 2 additions & 2 deletions ST_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include <string.h>
#include <math.h>
#include "ST_steppe.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "ST_structs.h"
#include "ST_stats.h" // Contains most of the function declarations.
#include "ST_seedDispersal.h"
Expand Down
2 changes: 1 addition & 1 deletion ST_steppe.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "ST_defines.h"
#include "ST_functions.h"

#include "generic.h"
#include "sw_src/generic.h"

#define DFLT_FIRSTFILE "files.in"

Expand Down
2 changes: 1 addition & 1 deletion ST_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef STEPPE_STRUCT_DEF
#define STEPPE_STRUCT_DEF

#include "generic.h"
#include "sw_src/generic.h"
#include "ST_mortality.h"

/**
Expand Down
10 changes: 5 additions & 5 deletions sxw.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "ST_steppe.h"
#include "ST_globals.h"
#include "SW_Defines.h"
#include "sw_src/SW_Defines.h"
#include "sxw.h"
#include "sxw_funcs.h"
#include "sxw_module.h"
Expand Down Expand Up @@ -1111,7 +1111,7 @@ void _print_debuginfo(void) {


#ifdef DEBUG_MEM
#include "myMemory.h"
#include "sw_src/myMemory.h"
/*======================================================*/
void SXW_SetMemoryRefs( void) {
/* when debugging memory problems, use the bookkeeping
Expand Down
4 changes: 2 additions & 2 deletions sxw.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
// The number of transpiration values retained by transp_data
#define MAX_WINDOW 100

#include "generic.h"
#include "SW_Times.h"
#include "sw_src/generic.h"
#include "sw_src/SW_Times.h"
#include "ST_defines.h"
#include "sw_src/SW_Defines.h"

Expand Down
12 changes: 6 additions & 6 deletions sxw_environs.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
/* --------------------------------------------------- */

#include <stdio.h>
#include "generic.h"
#include "sw_src/generic.h"
#include "ST_steppe.h"
/*#include "ST_globals.h"*/
#include "SW_Defines.h"
#include "sw_src/SW_Defines.h"
#include "sxw.h"
#include "sxw_module.h"
#include "SW_Model.h"
#include "SW_Site.h"
#include "SW_SoilWater.h"
#include "SW_Weather.h"
#include "sw_src/SW_Model.h"
#include "sw_src/SW_Site.h"
#include "sw_src/SW_SoilWater.h"
#include "sw_src/SW_Weather.h"

/*************** Global Variable Declarations ***************/
/***********************************************************/
Expand Down
6 changes: 3 additions & 3 deletions sxw_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
#include <stdlib.h>
#include <stdio.h>
#include "ST_steppe.h"
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "sxw_funcs.h"

/* for the chdir function */
Expand Down
22 changes: 11 additions & 11 deletions sxw_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
/* --------------------------------------------------- */

#include <stdio.h>
#include "generic.h"
#include "rands.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "sw_src/generic.h"
#include "sw_src/rands.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "ST_steppe.h"
#include "ST_globals.h"
#include "SW_Defines.h"
#include "sw_src/SW_Defines.h"
#include "sxw.h"
#include "sxw_module.h"
#include "sxw_vars.h"
#include "SW_Control.h"
#include "SW_Site.h"
#include "SW_SoilWater.h"
#include "SW_VegProd.h"
#include "SW_Files.h"
#include "SW_Times.h"
#include "sw_src/SW_Control.h"
#include "sw_src/SW_Site.h"
#include "sw_src/SW_SoilWater.h"
#include "sw_src/SW_VegProd.h"
#include "sw_src/SW_Files.h"
#include "sw_src/SW_Times.h"
#include "sw_src/pcg/pcg_basic.h"

/*************** Global Variable Declarations ***************/
Expand Down
22 changes: 11 additions & 11 deletions sxw_soilwat.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@
/* --------------------------------------------------- */

#include <stdio.h>
#include "generic.h"
#include "filefuncs.h"
#include "myMemory.h"
#include "Times.h"
#include "sw_src/generic.h"
#include "sw_src/filefuncs.h"
#include "sw_src/myMemory.h"
#include "sw_src/Times.h"
#include "ST_steppe.h"
#include "ST_globals.h"
#include "SW_Defines.h"
#include "sw_src/SW_Defines.h"
#include "sxw.h"
#include "sxw_module.h"
#include "SW_Control.h"
#include "SW_Model.h"
#include "SW_Site.h"
#include "SW_SoilWater.h"
#include "SW_VegProd.h"
#include "SW_Files.h"
#include "sw_src/SW_Control.h"
#include "sw_src/SW_Model.h"
#include "sw_src/SW_Site.h"
#include "sw_src/SW_SoilWater.h"
#include "sw_src/SW_VegProd.h"
#include "sw_src/SW_Files.h"


/*************** Global Variable Declarations ***************/
Expand Down
2 changes: 1 addition & 1 deletion sxw_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <sqlite3.h>
#include "ST_steppe.h"
#include "ST_globals.h"
#include "SW_Defines.h"
#include "sw_src/SW_Defines.h"
#include "sxw_module.h"
#include "sxw.h"

Expand Down
2 changes: 1 addition & 1 deletion sxw_vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define SXW_VARS_DEF

#include "sxw.h"
#include "generic.h"
#include "sw_src/generic.h"


extern SXW_t* SXW;
Expand Down
Loading

0 comments on commit cf2e00a

Please sign in to comment.