[petsc-users] compiler error

Gideon Simpson gideon.simpson at gmail.com
Thu Jan 14 07:39:17 CST 2016


I know I did a git pull recently, but when did that change?  What’s the fifth argument represent?

-gideon

> On Jan 13, 2016, at 11:54 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> On Wed, 13 Jan 2016, Gideon Simpson wrote:
> 
>> I haven’t seen this before:
>> 
>> /mnt/HA/opt/openmpi/intel/2015/1.8.1-mlnx-ofed/bin/mpicc -o fixed_batch.o -c -fPIC  -wd1572 -g   -I/home/simpson/software/petsc/include -I/home/simpson/software/petsc/arch-linux2-c-debug/include -I/mnt/HA/opt/openmpi/intel/2015/1.8.1-mlnx-ofed/include   -Wall `pwd`/fixed_batch.c
>> /home/simpson/projects/dnls/petsc/fixed_batch.c(44): warning #167: argument of type "PetscScalar={PetscReal={double}} *" is incompatible with parameter of type "const char *"
>>      PetscOptionsGetScalar(NULL,"-xmax",&xmax,NULL);
>>                                         ^
>> 
>> /home/simpson/projects/dnls/petsc/fixed_batch.c(44): error #165: too few arguments in function call
>>      PetscOptionsGetScalar(NULL,"-xmax",&xmax,NULL);
> 
> Try:
> 
>      PetscOptionsGetScalar(NULL,NULL,"-xmax",&xmax,NULL);
> 
> Satish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160114/1e6eb403/attachment.html>


More information about the petsc-users mailing list