you can simply assign a constant to your system's solution vector: http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1NumericVector.php#aa2 80ed0139db9a1a4204a2b886ef60ba
something like *system.solution = 1.; Should do the trick After the equation system is initialized. Really though the most supported thing to do would be to provide an initialization function that just returns 1 like in ex9. -Ben On 6/11/11 1:58 PM, "Ataollah Mesgarnejad" <[email protected]> wrote: > Thanks Ben, > > But is there an easier way if I want to initialize everywhere with "1." ? > > -Ata > On Jun 11, 2011, at 1:47 PM, Kirk, Benjamin (JSC-EG311) wrote: > >> There are a number of ways, we illustrate one in ex9. >> >> -Ben >> >> >> >> On Jun 11, 2011, at 1:43 PM, "Ataollah Mesgarnejad" <[email protected]> >> wrote: >> >>> Dear all, >>> >>> Is there a way to initialize a variable that I add to my equation system >>> with non-zero value?? >>> >>> Best, >>> Ata >>> ---------------------------------------------------------------------------- >>> -- >>> EditLive Enterprise is the world's most technically advanced content >>> authoring tool. Experience the power of Track Changes, Inline Image >>> Editing and ensure content is compliant with Accessibility Checking. >>> http://p.sf.net/sfu/ephox-dev2dev >>> _______________________________________________ >>> Libmesh-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
