Index: /issm/trunk-jpl/src/c/classes/FemModel.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/FemModel.cpp	(revision 21831)
+++ /issm/trunk-jpl/src/c/classes/FemModel.cpp	(revision 21832)
@@ -82,4 +82,10 @@
    /*AMR stuff*/
 	this->parameters->FindParam(&amr_frequency,TransientAmrFrequencyEnum);
+	#ifdef _HAVE_NEOPZ_
+	this->amr = NULL;
+	#endif
+	#ifdef _HAVE_BAMG_
+	this->amrbamg = NULL;
+	#endif
 	if(amr_frequency){
 		this->parameters->FindParam(&amrtype,AmrTypeEnum);
@@ -121,4 +127,11 @@
 	this->InitFromFiles(rootpath,inputfilename,outputfilename,toolkitsfilename,lockfilename,restartfilename, solution_type,traceon,X);
 	profiler->Tag(FINISHINIT);
+
+	#ifdef _HAVE_NEOPZ_
+	this->amr = NULL;
+	#endif
+	#ifdef _HAVE_BAMG_
+	this->amrbamg = NULL;
+	#endif
 	
 	/*Save communicator in the parameters dataset: */
@@ -288,4 +301,12 @@
 		ConfigureObjectsx(output->elements,output->loads,output->nodes,output->vertices,output->materials,output->parameters);
 	}
+
+	/*AMR, no copy for now*/
+	#ifdef _HAVE_NEOPZ_
+	this->amr = NULL;
+	#endif
+	#ifdef _HAVE_BAMG_
+	this->amrbamg = NULL;
+	#endif
 
 	/*Reset current configuration: */
