void RadioEnumEditor::build() { WidgetKit& wk = *WidgetKit::instance(); const LayoutKit& lk = *LayoutKit::instance(); mainglyph = lk.vbox(); mainglyph->append(lk.hcenter(wk.label(lab))); buildbox(); mainglyph->append(lk.hcenter(_buttonbox)); if (_noframe) body(mainglyph); else body(wk.inset_frame(lk.margin(mainglyph, 10))); }
void mkcompact(int astart,int nwater,int nwatom,rvec x[],rvec v[], int nnode,matrix box) { /* Make a compact configuration for each processor. * Divide the computational box in near cubic boxes and spread them * evenly over processors. */ /* ivec nbox; */ int m; if (nnode <= 1) return; buildbox(nnode,NBOX,box); /* copy_ivec(nbox,NBOX); */ for(m=0; (m<DIM); m++) box_1[m] = 1.0/box[m][m]; lo_sortwater(astart,nwater,nwatom,x,v,TRUE); }