// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
-printf("EED ReadMHDPlane::Process Start\n");
-
std::string inputfilename;
if (bbGetInputDirectionPlane()=="XY")
FILE *ffIn = fopen(inputfilename.c_str(),"r");
if (ffIn!=NULL)
{
-printf("EED ReadMHDPlane::Process 1\n");
FILE *ffOut = fopen(newFileName.c_str(),"w");
-printf("EED ReadMHDPlane::Process 2 %p %s\n",ffOut, newFileName.c_str() );
while(!feof(ffIn))
{
strcpy(mystring,"\n");
fgets(mystring,250,ffIn);
-printf("EED ReadMHDPlane::Process MHD:%s\n", mystring);
if (strncmp("NDims",mystring,5)==0) {strcpy(mystring,"NDims = 2\n");}
if (strncmp("DimSize",mystring,6)==0)
{
{
fprintf(ffOut,"HeaderSize = %ld\n\n", newHeaderSize );
} // if
-printf("EED ReadMHDPlane::Process 3\n");
fprintf(ffOut,mystring);
-printf("EED ReadMHDPlane::Process 4\n");
} // while
fclose(ffIn);
fclose(ffOut);
} // if ok
bbSetOutputOut( newImage );
-printf("EED ReadMHDPlane::Process End\n");
}
//=====