Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: KIRK, BENJAMIN (JSC-EG) (NASA) <benjamin.kirk-1@na...> - 2004-11-18 22:32:45
|
Well, if you see something stupid that may be worth asking about... Sometimes something is implemented in an obvious way but through the course of refactoring it becomes either un-obvious or inefficient. In either case pointing it out wouldn't hurt. You can always ask off-list if you want to be rude... :-) If you do need to perform such an inversion I would suggest doing it through the DenseMatrix class. Right now it implements (by hand) lu factorization without pivoting... In reality, however, this method is really just a placeholder for a call to LAPACK (which is guaranteed to be present if PETSc is there) or replaced altogether with the Boost matrix implementation... In either case, I assume this would need to be done once per element & you can cache either the lu factorization or the solution? Perhaps the data could then be written to file so at least restarts are quick?? -Ben -----Original Message----- From: libmesh-devel-admin@... [mailto:libmesh-devel-admin@...] On Behalf Of Roy Stogner Sent: Thursday, November 18, 2004 4:19 PM To: libmesh-devel@... Subject: Re: [Libmesh-devel] Regression in event logging? On Thu, 18 Nov 2004, Benjamin S. Kirk wrote: > On another note, I'd really like to see the C1-continuous element > support > make it in the library, so please don't hesitate to ask any questions you may > have... Most of my remaining questions would either be of the form "Why did you implement this with method X instead of method Y" (for which the answer would probably be either differing personal preferences or performance optimizations I don't yet understand) or of the form "Why haven't you done Z" (for which the answer would probably be "there's only so many hours in the day"). In either case I'd feel rude asking. So far John's been able to answer all of the real questions I've had, and my major obstacle is that I'm finding places (the calculation of coefficients for determining physical element shape functions as linear combinations of master element shape functions) where 30 lines of elegant but grossly inefficient Matlab code translates into 300 lines of efficient but grossly inelegant C++. That's just for the 2D macroelement, too - the equivalent function in 1D is about 10 lines. If 2D keeps taking forever to debug, then in 3D I'll probably end up going the "slightly inelegant, moderately inefficient" route of making Petsc do the work. I suspect inverting a 40x40 matrix at every element could eat into run time, though. --- Roy ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. http://www.intersystems.com/match8 _______________________________________________ Libmesh-devel mailing list Libmesh-devel@... https://lists.sourceforge.net/lists/listinfo/libmesh-devel |