Passing open and close test
This commit is contained in:
@@ -132,7 +132,7 @@ int juncdata(Project *pr)
|
||||
// apply the default demand pattern and append the data
|
||||
if (p == 0) p = findpattern(net, parser->DefPatID);
|
||||
demand_data = create_demand_data(y, p, NULL);
|
||||
if (demand_data == NULL) return 101;
|
||||
if (demand_data == NULL) return 101;
|
||||
|
||||
append_list(demand_list, &demand_data);
|
||||
}
|
||||
|
||||
16
src/types.h
16
src/types.h
@@ -339,14 +339,14 @@ typedef struct // Curve Object
|
||||
double *Y; // y-values
|
||||
} Scurve;
|
||||
|
||||
struct Sdemand // Demand List Item
|
||||
{
|
||||
double Base; // baseline demand
|
||||
int Pat; // pattern index
|
||||
char *Name; // demand category name
|
||||
struct Sdemand *next; // next demand list item
|
||||
};
|
||||
typedef struct Sdemand *Pdemand; // Pointer to demand list
|
||||
//struct Sdemand // Demand List Item
|
||||
//{
|
||||
// double Base; // baseline demand
|
||||
// int Pat; // pattern index
|
||||
// char *Name; // demand category name
|
||||
// struct Sdemand *next; // next demand list item
|
||||
//};
|
||||
//typedef struct Sdemand *Pdemand; // Pointer to demand list
|
||||
|
||||
typedef struct // Energy Usage Object
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user