66#include "bmi.h"
77#include "bmi_waves.h"
88
9- /* Implement this: Add model-specific includes */
109#include "waves_model.h"
1110
1211
@@ -143,7 +142,7 @@ get_start_time(Bmi * self, double *time)
143142
144143static int
145144get_end_time (Bmi * self , double * time )
146- { /* Implement this: Set end time */
145+ {
147146 WavesModel * model = (WavesModel * )self -> data ;
148147 * time = model -> end * model -> time_step ;
149148 return BMI_SUCCESS ;
@@ -152,7 +151,7 @@ get_end_time(Bmi * self, double *time)
152151
153152static int
154153get_current_time (Bmi * self , double * time )
155- { /* Implement this: Set current time */
154+ {
156155 WavesModel * model = (WavesModel * )self -> data ;
157156 * time = model -> now * model -> time_step ;
158157 return BMI_SUCCESS ;
@@ -161,7 +160,7 @@ get_current_time(Bmi * self, double *time)
161160
162161static int
163162get_time_step (Bmi * self , double * dt )
164- { /* Implement this: Set time step */
163+ {
165164 WavesModel * model = (WavesModel * )self -> data ;
166165 * dt = model -> time_step ;
167166 return BMI_SUCCESS ;
@@ -178,7 +177,7 @@ get_time_units(Bmi * self, char *units)
178177
179178static int
180179initialize (Bmi * handle , const char * file )
181- { /* Implement this: Create and initialize a model handle */
180+ {
182181 {
183182 WavesModel * self = (WavesModel * )handle -> data ;
184183 double end_time = 20. ;
@@ -217,7 +216,7 @@ initialize(Bmi* handle, const char * file)
217216
218217static int
219218update_frac (Bmi * self , double f )
220- { /* Implement this: Update for a fraction of a time step */
219+ {
221220 WavesModel * p = (WavesModel * ) self -> data ;
222221 double now ;
223222 //int until_time_step = p->time_step * f;
@@ -269,7 +268,7 @@ update_until(Bmi * self, double then)
269268
270269static int
271270finalize (Bmi * self )
272- { /* Implement this: Clean up */
271+ {
273272 waves_destroy ((WavesModel * )self -> data );
274273
275274 return BMI_SUCCESS ;
0 commit comments