Skip to content

Commit c4b79e3

Browse files
committed
Add missing ARLAdv function
1 parent b5443a9 commit c4b79e3

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎ffiwrappers/include/wrap_support.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ ARLVis *allocate_blockvis_data(int nants, int nchan, int npol, int ntimes);
1212
ARLGt *allocate_gt_data(int nant, int nchan, int nrec, int ntimes);
1313
ARLVis *destroy_vis(ARLVis *vis);
1414
ARLGt *destroy_gt(ARLGt *gt);
15+
ARLadvice *allocate_arladv_default();
1516

1617
#endif

‎ffiwrappers/src/wrap_support.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,19 @@ ARLGt *destroy_gt(ARLGt *gt)
227227
return NULL;
228228
}
229229

230+
ARLadvice *allocate_arladv_default()
231+
{
232+
ARLadvice *adv;
233+
if(!(adv = (ARLadvice *)calloc(1, sizeof(ARLadvice)))) {
234+
return NULL;
235+
}
236+
237+
adv->vis_slices= 41; //0
238+
adv->npixel = 384; //0
239+
adv->cellsize = 0.0014552998039974536; //0.0
240+
adv->guard_band_image = 4.0;
241+
adv->delA=0.02;
242+
adv->wprojection_planes = 1;
243+
244+
return adv;
245+
}

0 commit comments

Comments
 (0)