Home
last modified time | relevance | path

Searched refs:molef (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/
H A Dextchem.c318 PetscErrorCode MassFractionToMoleFraction(User user, Vec massf, Vec *molef) in MassFractionToMoleFraction() argument
324 PetscCall(VecDuplicate(massf, molef)); in MassFractionToMoleFraction()
326 PetscCall(VecGetArray(*molef, &mof)); in MassFractionToMoleFraction()
329 PetscCall(VecRestoreArray(*molef, &mof)); in MassFractionToMoleFraction()
337 PetscErrorCode MoleFractionToMassFraction(User user, Vec molef, Vec *massf) in MoleFractionToMassFraction() argument
343 PetscCall(VecDuplicate(molef, massf)); in MoleFractionToMassFraction()
344 PetscCall(VecGetArrayRead(molef, &mof)); in MoleFractionToMassFraction()
348 PetscCall(VecRestoreArrayRead(molef, &mof)); in MoleFractionToMassFraction()
389 PETSC_UNUSED PetscErrorCode PrintSpecies(User user, Vec molef) in PrintSpecies() argument
397 PetscCall(VecGetArrayRead(molef, &mof)); in PrintSpecies()
[all …]
H A Dextchemfield.c425 static PetscErrorCode FormMoleFraction(UserLGCtx *ctx, Vec massf, Vec *molef) in FormMoleFraction() argument
434 PetscCall(VecCreateSeq(PETSC_COMM_SELF, n, molef)); in FormMoleFraction()
438 PetscCall(VecGetArray(*molef, &mof)); in FormMoleFraction()
443 PetscCall(VecRestoreArray(*molef, &mof)); in FormMoleFraction()