[petsc-users] about make code with Petsc

behzad baghapour behzad.baghapour at gmail.com
Thu Oct 13 09:18:11 CDT 2011


Oh. I should chang it a bit. Thanks any way.

On Thu, Oct 13, 2011 at 5:34 PM, behzad baghapour <
behzad.baghapour at gmail.com> wrote:

> By the way. I can move the objects BUT when I remake the code all objects
> are rebuilt again!!. Why when there is no need when objects are already
> exist?
>
>
> On Thu, Oct 13, 2011 at 5:30 PM, behzad baghapour <
> behzad.baghapour at gmail.com> wrote:
>
>> Thanks.
>>
>>
>> On Thu, Oct 13, 2011 at 5:05 PM, Matthew Knepley <knepley at gmail.com>wrote:
>>
>>> On Thu, Oct 13, 2011 at 8:21 AM, behzad baghapour <
>>> behzad.baghapour at gmail.com> wrote:
>>>
>>>> Dear all,
>>>>
>>>> I want to create code objects in different folder like "object" but I
>>>> received "no rule to make target". The makefile is in the source files
>>>> folder.
>>>> Please tell me a hint for it.
>>>>
>>>
>>> The PETSc make rules always put the *.o files in the same directory as
>>> the source. If you want then in a different place,
>>> you can put in an explicit 'mv' in your rule for the executable. There is
>>> also an experimental Python system, but I would
>>> not use it unless you have a lot of experience.
>>>
>>>   Thanks,
>>>
>>>      Matt
>>>
>>>
>>>> Here is my makefile:
>>>>
>>>> SHELL=/bin/bash
>>>>
>>>> OBJDIR   = object/
>>>> MYOBJ    = # my object files #
>>>>
>>>> include ${PETSC_DIR}/conf/variables
>>>> include ${PETSC_DIR}/conf/rules
>>>>
>>>> OBJLIST = $(addprefix $(OBJDIR), $(MYOBJ))
>>>>
>>>> code: ${OBJLIST} chkopts
>>>>     -${CLINKER} -o code ${OBJLIST} ${INCDIR} ${PETSC_LIB}
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> ==================================
>>>> Behzad Baghapour
>>>> Ph.D. Candidate, Mechecanical Engineering
>>>> University of Tehran, Tehran, Iran
>>>> https://sites.google.com/site/behzadbaghapour
>>>> Fax: 0098-21-88020741
>>>> ==================================
>>>>
>>>>
>>>
>>>
>>> --
>>> What most experimenters take for granted before they begin their
>>> experiments is infinitely more interesting than any results to which their
>>> experiments lead.
>>> -- Norbert Wiener
>>>
>>
>>
>>
>> --
>> ==================================
>> Behzad Baghapour
>> Ph.D. Candidate, Mechecanical Engineering
>> University of Tehran, Tehran, Iran
>> https://sites.google.com/site/behzadbaghapour
>> Fax: 0098-21-88020741
>> ==================================
>>
>>
>
>
> --
> ==================================
> Behzad Baghapour
> Ph.D. Candidate, Mechecanical Engineering
> University of Tehran, Tehran, Iran
> https://sites.google.com/site/behzadbaghapour
> Fax: 0098-21-88020741
> ==================================
>
>


-- 
==================================
Behzad Baghapour
Ph.D. Candidate, Mechecanical Engineering
University of Tehran, Tehran, Iran
https://sites.google.com/site/behzadbaghapour
Fax: 0098-21-88020741
==================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111013/c7bd545e/attachment.htm>


More information about the petsc-users mailing list