Lines Matching refs:sgsdd_ctx
595 SgsDDContext sgsdd_ctx; in SgsDDContextFill() local
611 …sgsdd_temp->total_bytes = sizeof(*sgsdd_ctx) + total_num_scalars * sizeof(sgsdd_ctx->data[… in SgsDDContextFill()
612 PetscCall(PetscMalloc(sgsdd_temp->total_bytes, &sgsdd_ctx)); in SgsDDContextFill()
613 *sgsdd_ctx = *sgsdd_temp; in SgsDDContextFill()
618 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.bias1]… in SgsDDContextFill()
620 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.bias2]… in SgsDDContextFill()
622 …PetscCall(PhastaDatFileReadToArrayReal(comm, file_path, &sgsdd_ctx->data[sgsdd_ctx->offsets.out_sc… in SgsDDContextFill()
628 …PetscCall(TransposeMatrix(temp, &sgsdd_ctx->data[sgsdd_ctx->offsets.weight1], num_inputs, num_neur… in SgsDDContextFill()
635 …PetscCall(TransposeMatrix(temp, &sgsdd_ctx->data[sgsdd_ctx->offsets.weight2], num_neurons, num_out… in SgsDDContextFill()
640 *psgsdd_ctx = sgsdd_ctx; in SgsDDContextFill()
646 SgsDDContext sgsdd_ctx; in SgsDDSetup() local
686 PetscCall(PetscNew(&sgsdd_ctx)); in SgsDDSetup()
687 *sgsdd_ctx = (struct SgsDDContext_){ in SgsDDSetup()
695 PetscCall(SgsDDContextFill(comm, sgs_dd_dir, &sgsdd_ctx)); in SgsDDSetup()
701 sgsdd_ctx->newt_ctx = *newt_ctx; in SgsDDSetup()
705 …s_dd_setup_data->sgsdd_qfctx, CEED_MEM_HOST, CEED_USE_POINTER, sgsdd_ctx->total_bytes, sgsdd_ctx)); in SgsDDSetup()