It wont compile for me:

In file included from src/physics/fem_physics.C:25:0:
/home/vikram/libmesh/include/libmesh/fem_system.h:58:1: error: expected class-name before ‘{’ token
src/physics/fem_physics.C: In member function ‘void libMesh::FEMSystem::mesh_position_set()’:
src/physics/fem_physics.C:656:7: error: ‘_mesh_sys’ was not declared in this scope
src/physics/fem_physics.C: In member function ‘void libMesh::FEMSystem::numerical_jacobian(libMesh::FEMSystem::TimeSolverResPtr, libMesh::FEMContext&)’:
src/physics/fem_physics.C:789:7: error: ‘_mesh_sys’ was not declared in this scope
src/physics/fem_physics.C:801:11: error: ‘_mesh_sys’ was not declared in this scope
src/physics/fem_physics.C:803:15: error: ‘_mesh_x_var’ was not declared in this scope
src/physics/fem_physics.C:809:15: error: ‘_mesh_y_var’ was not declared in this scope
src/physics/fem_physics.C:815:15: error: ‘_mesh_z_var’ was not declared in this scope
src/physics/fem_physics.C: In member function ‘void libMesh::FEMSystem::mesh_position_get()’:
src/physics/fem_physics.C:938:8: error: ‘_mesh_sys’ was not declared in this scope
src/physics/fem_physics.C:942:7: error: ‘_mesh_sys’ was not declared in this scope
src/physics/fem_physics.C:964:11: error: ‘_mesh_x_var’ was not declared in this scope
src/physics/fem_physics.C:967:11: error: ‘_mesh_y_var’ was not declared in this scope
src/physics/fem_physics.C:970:11: error: ‘_mesh_z_var’ was not declared in this scope

Thanks.

On Tue, Nov 6, 2012 at 12:24 PM, Roy Stogner <roystgnr@ices.utexas.edu> wrote:

This should in theory make it possible for people to write their own
DiffPhysics subclasses and attach them to a DiffSystem rather than
writing DiffSystem subclasses.

For now I'd just like to be sure we don't break any existing
DiffSystem and/or FEMSystem users.  Give the following patch a try?

http://users.ices.utexas.edu/~roystgnr/fem_physics_patch


The usual caveats about how "svn diff" doesn't play nicely enough with
symlinks or newly svn copied files apply.  You'll probably need to do:

svn copy include/physics/diff_physics.h include/physics/fem_physics.h
svn copy src/systems/fem_system.C src/physics/fem_physics.C

before the patch will apply and then

ln -sf ../physics/fem_physics.h include/libmesh/

before the applied patch will work.
---
Roy



--
Vikram Garg
PhD Candidate
Institute for Computational and Engineering Sciences
The University of Texas at Austin

http://users.ices.utexas.edu/~vikram/
http://www.runforindia.org/runners/vikramg