[Trilinos-Users] Epetra_FEVector ReplaceGlobalValue
Simone Deparis
deparis at MIT.EDU
Tue Nov 15 05:16:15 MST 2005
Thank you. For my needs, the little "patch" is enough, and since one can
do more than one globalAssemble, probably is a good tread off btw
feasablility and needs.
Simone
Williams, Alan B wrote:
> Simone,
>
> It is a hard problem, there is no good way to have GlobalAssemble manage
> a mixture of Adds and Replaces. But adding the CombineMode argument
> would allow a user to switch "modes". I'll make the change and let you
> know when it's done.
>
> Alan
>
>
>
>>-----Original Message-----
>>From: trilinos-users-bounces at software.sandia.gov
>>[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf
>>Of Simone Deparis
>>Sent: Thursday, November 10, 2005 1:26 PM
>>To: trilinos-users at software.sandia.gov
>>Subject: [Trilinos-Users] Epetra_FEVector ReplaceGlobalValue
>>
>>In Epetra_FEVector, the method ReplaceGlobalValue does
>>actually _not_ replace a remote values, it will add it:
>>
>>line 346 of Epetra_FEVector.cpp, method globalAssemble
>> EPETRA_CHK_ERR( Export(nonlocalVector, exporter, Add) );
>>
>>One possible, but still buggy, solution can be to change the
>>method global assemble to ( in .h)
>>
>> int GlobalAssemble(const Epetra_CombineMode& CombineMode = Add);
>>
>>and then modify the header of the method to int
>>Epetra_FEVector::GlobalAssemble(const Epetra_CombineMode&
>>CombineMode) and line 346 becomes:
>> EPETRA_CHK_ERR( Export(nonlocalVector, exporter, CombineMode) );
>>
>>As said, this is still buggy, but at least give me the chance
>>to decide wether to replace or add the remote values.
>>
>>
>>Simone
>>
>>
>>
>>--
>>_____________________________________________________________________
>> Simone Deparis
>> .~. Mechanical Engineering Dept
>> /V\ L I N U X 77 Mass Ave Room 3-264
>> // \\ ================= Cambridge MA 02139
>>/( )\ USA
>> ^^-^^
>>phone : +1 617 452 3285 mailto:deparis at mit.edu
>>fax : +1 617 258 8559 http://www.mit.edu/~deparis
>>_____________________________________________________________________
>>
>>
>>
>>_______________________________________________
>>Trilinos-Users mailing list
>>Trilinos-Users at software.sandia.gov
>>http://software.sandia.gov/mailman/listinfo/trilinos-users
>>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
--
_____________________________________________________________________
Simone Deparis
.~. Mechanical Engineering Dept
/V\ L I N U X 77 Mass Ave Room 3-264
// \\ ================= Cambridge MA 02139
/( )\ USA
^^-^^
phone : +1 617 452 3285 mailto:deparis at mit.edu
fax : +1 617 258 8559 http://www.mit.edu/~deparis
_____________________________________________________________________
More information about the Trilinos-Users
mailing list