Commit 9f75c392 by Erin Kuci

up

parent 2e06152f
Pipeline #1154 passed with stage
in 56 seconds
......@@ -225,11 +225,11 @@ void F_ValueFromTable (F_ARG)
return;
}
if(GetDPNumbersMap.size()){
Message::Warning("No element or node table found with name %s, or "
"no entity index %d in the table", Fct->String,
Current.NumEntity);
}
//if(GetDPNumbersMap.size()){
// Message::Warning("No element or node table found with name %s, or "
// "no entity index %d in the table", Fct->String,
// Current.NumEntity);
//}
for(int i = 0; i < Fct->NbrArguments; i++){
if(i != 0){
......
......@@ -34,7 +34,9 @@ static void UpdateVector(const PetscReal value, const PetscInt row, Vec& vector)
static void GetValueVector(double &value, const PetscInt id, const Vec& vector)
{
VecGetValues(vector, 1, &id, &value);
PetscScalar val;
VecGetValues(vector, 1, &id, &val);
value = PetscRealPart(val);
}
static void AssembleVector(const Vec& vector)
......@@ -79,10 +81,10 @@ static void UpdateMatrixRowFromVector(double* myvecvals, int vecsize,
// }
//}
int nonzeroadresses[vecsize];
double nonzerovalues[vecsize];
PetscScalar nonzerovalues[vecsize];
for (int i = 0; i < vecsize; i++){
nonzeroadresses[i] = i;
nonzerovalues[i] = myvecvals[i];
nonzerovalues[i] = (PetscScalar)myvecvals[i];
}
// fill the matrix
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment