Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/ !
H A Dextchem.c43 int Nspec; member
107 user.Nspec = TC_getNspec(); in main()
112 PetscCall(PetscMalloc1((user.Nspec + 1) * LENGTHOFSPECNAME, &names)); in main()
113 PetscCall(PetscStrncpy(names, "Temp", (user.Nspec + 1) * LENGTHOFSPECNAME)); in main()
114 TC_getSnames(user.Nspec, names + LENGTHOFSPECNAME); in main()
115 PetscCall(PetscMalloc1(user.Nspec + 2, &snames)); in main()
116 for (i = 0; i < user.Nspec + 1; i++) snames[i] = names + i * LENGTHOFSPECNAME; in main()
117 snames[user.Nspec + 1] = NULL; in main()
122 …PetscCall(PetscMalloc3(user.Nspec + 1, &user.tchemwork, PetscSqr(user.Nspec + 1), &user.Jdense, us… in main()
123 PetscCall(VecCreateSeq(PETSC_COMM_SELF, user.Nspec + 1, &X)); in main()
[all …]
H A Dextchemfield.c67 int Nspec; member
122 user.Nspec = TC_getNspec(); in main()
125 …PetscCall(DMDACreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_PERIODIC, 10, user.Nspec + 1, 1, NULL, &user.… in main()
133 PetscCall(PetscMalloc1((user.Nspec + 1) * LENGTHOFSPECNAME, &names)); in main()
134 PetscCall(PetscStrncpy(names, "Temp", (user.Nspec + 1) * LENGTHOFSPECNAME)); in main()
135 TC_getSnames(user.Nspec, names + LENGTHOFSPECNAME); in main()
136 PetscCall(PetscMalloc1(user.Nspec + 2, &snames)); in main()
137 for (i = 0; i < user.Nspec + 1; i++) snames[i] = names + i * LENGTHOFSPECNAME; in main()
138 snames[user.Nspec + 1] = NULL; in main()
146 …PetscCall(PetscMalloc3(user.Nspec + 1, &user.tchemwork, PetscSqr(user.Nspec + 1), &user.Jdense, us… in main()
[all …]