aturday, April 2, 2016 at 3:51 AM
To: PETSc users list
mailto:petsc-users@mcs.anl.gov>>,
"rongliang.c...@gmail.com
<mailto:rongliang.c...@gmail.com>"
gt; No - you should change it in your function FormMassTimeStepFunction().
>>>>>> The input vector x passed into SNESComputeFunction() is read only.
>>>>>>
>>>>>>
>>>>>>
>>>>>>> I tried it and I got a
o:petsc-users@mcs.anl.gov>>,
"rongliang.c...@gmail.com
<mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc-users] Vec is locked
incompatible pointer type
>>>>>> [enabled by default]
>>>>>> In file included from
>>>>>> /home/rlchen/soft/petsc-3.6.3/include/petscmat.h:6:0,
>>>>>> from /home/rlchen/soft/petsc-3.6.3/include/petscdm.h:6,
>>>>>> from /ho
;mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc-users] Vec is locked read only
Dear All,
My code got the following error
>>>> from /home/rlchen/soft/petsc-3.6.3/include/petsc/private/dmimpl.h:6,
>>>>> from /home/rlchen/soft/petsc-3.6.3/src/dm/interface/dm.c:1:
>>>>> /home/rlchen/soft/petsc-3.6.3/include/petscvec.h:420:29: note:
>>>>> expected ‘const PetscScalar **’
tsc-users@mcs.anl.gov>>,
"rongliang.c...@gmail.com
<mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc-users] Vec is locked read only
Dear All,
calar **’
>>>>
>>>> Best regards,
>>>> Rongliang
>>>>
>>>> -
>>>> Rongliang Chen, PhD
>>>> Associate Professor
>>>>
>>>> Laboratory for Engineering and Scientific Computing
, 2016 at 3:51 AM
To: PETSc users list mailto:petsc-users@mcs.anl.gov>>,
"rongliang.c...@gmail.com
<mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc-users] V
Shenzhen University Town, Shenzhen,
>>> Guangdong (518055), P. R. China
>>> E-mail: rl.c...@siat.ac.cn
>>> Phone: +86-755-86392312
>>>
>>>
>>> On 04/02/2016 05:03 PM, Abhyankar, Shrirang G. wrote:
>>>
>>>> Use VecGetArray
rs list mailto:petsc-users@mcs.anl.gov>>,
"rongliang.c...@gmail.com <mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc-users] Vec is locked read only
Dear All,
My code got the fol
Shrirang G. wrote:
>>
>>> Use VecGetArrayRead instead of VecGetArray
>>>
>>>
>>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetArray
>>> Read.html
>>>
>>>
>>> Shri
>>>
>>> -Origi
hen mailto:rl.c...@siat.ac.cn>>
Date: Saturday, April 2, 2016 at 3:51 AM
To: PETSc users list mailto:petsc-users@mcs.anl.gov>>, "rongliang.c...@gmail.com
<mailto:rongliang.c...@gmail.com>"
mailto:rongliang.c...@gmail.com>>
Subject: [petsc
alpages/Vec/VecGetArray
>> Read.html
>>
>>
>> Shri
>>
>> -Original Message-----
>> From: Rongliang Chen
>> Date: Saturday, April 2, 2016 at 3:51 AM
>> To: PETSc users list , "rongliang.c...@gmail.com
>> "
>>
>> S
, April 2, 2016 at 3:51 AM
To: PETSc users list , "rongliang.c...@gmail.com"
Subject: [petsc-users] Vec is locked read only
Dear All,
My code got the following error messages, but the code works well for
the petsc optimized version (--with-debugging=0). Anyone can tell me how
to fix th
ct: [petsc-users] Vec is locked read only
>Dear All,
>
>My code got the following error messages, but the code works well for
>the petsc optimized version (--with-debugging=0). Anyone can tell me how
>to fix this problem?
>
>Best regards,
>Rongliang
>
>
>[0]PETSC
Dear All,
My code got the following error messages, but the code works well for
the petsc optimized version (--with-debugging=0). Anyone can tell me how
to fix this problem?
Best regards,
Rongliang
[0]PETSC ERROR: - Error Message
17 matches
Mail list logo