Skip to content

Commit 286b5ff

Browse files
author
Lee Carver
committed
fix matlab build
1 parent 52c517d commit 286b5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atintegrators/BeamLoadingCavityPass.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
326326
/*optional attributes*/
327327
Energy=atGetOptionalDouble(ElemData,"Energy",0.0); check_error();
328328
z_cuts=atGetOptionalDoubleArray(ElemData,"ZCuts"); check_error();
329-
detune_angle=atGetOptionalDouble(ElemData,"detune_angle"); check_error();
329+
detune_angle=atGetOptionalDouble(ElemData,"detune_angle",0.0); check_error();
330330

331331
Elem = (struct elem*)atMalloc(sizeof(struct elem));
332332
Elem->Length=Length;

0 commit comments

Comments
 (0)