void bcast_ir_mtop(const t_commrec *cr,t_inputrec *inputrec,gmx_mtop_t *mtop) { int i; if (debug) fprintf(debug,"in bc_data\n"); bc_inputrec(cr,inputrec); if (debug) fprintf(debug,"after bc_inputrec\n"); bc_symtab(cr,&mtop->symtab); if (debug) fprintf(debug,"after bc_symtab\n"); bc_string(cr,&mtop->symtab,&mtop->name); if (debug) fprintf(debug,"after bc_name\n"); bc_ffparams(cr,&mtop->ffparams); block_bc(cr,mtop->nmoltype); snew_bc(cr,mtop->moltype,mtop->nmoltype); for(i=0; i<mtop->nmoltype; i++) { bc_moltype(cr,&mtop->symtab,&mtop->moltype[i]); } block_bc(cr,mtop->nmolblock); snew_bc(cr,mtop->molblock,mtop->nmolblock); for(i=0; i<mtop->nmolblock; i++) { bc_molblock(cr,&mtop->molblock[i]); } block_bc(cr,mtop->natoms); bc_atomtypes(cr,&mtop->atomtypes); bc_block(cr,&mtop->mols); bc_groups(cr,&mtop->symtab,mtop->natoms,&mtop->groups); bc_cmap(cr,&mtop->cmap_grid); }
static void bc_ffparams(const t_commrec *cr, gmx_ffparams_t *ffp) { block_bc(cr, ffp->ntypes); block_bc(cr, ffp->atnr); snew_bc(cr, ffp->functype, ffp->ntypes); snew_bc(cr, ffp->iparams, ffp->ntypes); nblock_bc(cr, ffp->ntypes, ffp->functype); nblock_bc(cr, ffp->ntypes, ffp->iparams); block_bc(cr, ffp->reppow); block_bc(cr, ffp->fudgeQQ); bc_cmap(cr, &ffp->cmap_grid); }