-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lagged G term, parallel issues still
- Loading branch information
Showing
16 changed files
with
733 additions
and
25 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,29 @@ | ||
#ifndef GOMA_COMPUTE_LAGGED_VARIABLES_H | ||
#define GOMA_COMPUTE_LAGGED_VARIABLES_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "exo_struct.h" | ||
#include "dpi.h" | ||
|
||
struct Lagged_Variables { | ||
double *lagged_variables[MAX_PROB_VAR]; | ||
int local_count; | ||
int global_count; | ||
int local_rows; | ||
int *local_node_to_lagged; | ||
double *exchange_lagged[MAX_PROB_VAR]; | ||
int *mapping_index; | ||
int *index; | ||
}; | ||
|
||
void setup_lagged_variables(Exo_DB *exo, Dpi *dpi, struct Lagged_Variables *lv); | ||
int compute_lagged_variables(Exo_DB * exo, Dpi *dpi, dbl * x, dbl *x_old, dbl *x_older, dbl *xdot, dbl *xdot_old, struct Lagged_Variables *lv); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // GOMA_COMPUTE_LAGGED_VARIABLES_H |
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
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
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
Oops, something went wrong.