Thanks. That solved my problem. Regards Amal ________________________________________ From: John Peterson [[email protected]] Sent: Monday, July 27, 2015 2:50 PM To: Sahai, Amal Cc: [email protected] Subject: Re: [Libmesh-users] Tecplot IO
On Mon, Jul 27, 2015 at 12:27 PM, Sahai, Amal <[email protected]<mailto:[email protected]>> wrote: I tried running the following loop for all elements: const Elem* elem = *el; elem->subdomain_id() = 2.; You can't set subdomain id on a constant Elem... you need to catch the dereferenced pointer as non-const, i.e. Elem* elem = *el; -- John ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
