test "x$ac_cv_sizeof_int" = "x4" || AC_MSG_ERROR([Size of C type int expected to be four bytes])
DEFINED_F77INT64=""
else
- AC_MSG_ERROR([Size of Fortran type integer is neither four nor eigth bytes])
+ AC_MSG_ERROR([Size of Fortran type integer is neither four nor eight bytes])
fi
AC_SUBST(DEFINED_F77INT64)
])
\ No newline at end of file
SALOME MED module. Keep in mind that the MEDMEM library is designed to
be a self-consistent library with very few third party softwares (only
med-file, glibc and mpi typically). In particular, it is strictly
-independant from the SALOME framework even if it distributed with
+independent from the SALOME framework even if it distributed with
SALOME for convenience reasons.
Components of the MEDMEM library
We suggest to work with a simple list concept to store the metadata
for each mesh entry and each field entry. Note that a mesh entry is
characterized by the mesh name only, while a field entry is
-charaterized by the following attributes:
+characterized by the following attributes:
* :tt:`fieldName`: the name of the field
* :tt:`meshName`: the name of the mesh that supports the field
* :tt:`iteration`: a couple of integers :tt:`(iter,order)` that
characterizes the step in a serie (timeseries or spectrum).
-By default, we suggest to work with a simple map concept (dictionnary in a
+By default, we suggest to work with a simple map concept (dictionary in a
python context, map in a C++ context) to register the meshes and
fields loaded from the med file for each metadata entry.
case, for performance reasons. For example, the following code
illustrates how to dispatch the metadata in a tree data structure
where leaves are the physical data (field objects). We first have to
-define a tree structure (basic definition in htis simple case, but it
+define a tree structure (basic definition in this simple case, but it
works fine):
.. include:: ../../tut/medloader/manage.py
class FuncCosinus(Function):
def __init__(self,nbPeriods):
- # The pulsation w must be choosen so that w*xmax=n*2pi where
+ # The pulsation w must be chosen so that w*xmax=n*2pi where
# xmax=1 and n is an integer that corresponds to the number of
# oscilations on the xrange [0,xmax].
w=nbPeriods*2*pi
def createMesh(meshname, sizeX, sizeY):
"""
Creating a cartesian mesh with a grid of the size of the image.
- sizeX and sizeY should be respectively the width and heigth of the
+ sizeX and sizeY should be respectively the width and height of the
image.
"""
# >>>
img=Image.open("images/avatar.png")
#img=Image.open("images/irm.png")
imgbw=ImageOps.grayscale(img)
- # We keep only the grayscale. Maybe, it could be usefull to get
+ # We keep only the grayscale. Maybe, it could be useful to get
# the RGB scales each on one component of the field.
width,height=imgbw.size
# MEDCoupling field? Or a tree that you cross using attribute and
# whose leaves are the MEDCoupling fields?
# R: I think that the default structure should be a simple list that
-# store objects whith properties that corresponds to the metadata (and
+# store objects with properties that corresponds to the metadata (and
# if loaded the MEDCouplingField or Mesh). Then for specific request,
# a BTree could be create to organize the search (for example if we
# request all the fields for a given iteration step, then we should
};
typedef sequence<FieldseriesHandler> FieldseriesHandlerList;
- // The FieldHandler structure is a lightweigth data structure that
+ // The FieldHandler structure is a lightweight data structure that
// represents a single field (as understood in MEDCoupling model).
struct FieldHandler {
long id;
FieldHandler getFieldHandler(in long fieldHandlerId);
FieldHandlerList getFieldHandlerList();
- // __GBO__ Maybe it could be usefull to define a getFieldHandlerList with a datasourceId in argument
+ // __GBO__ Maybe it could be useful to define a getFieldHandlerList with a datasourceId in argument
string getFieldRepresentation(in long fieldHandlerId);
// Persistency management
* function savePersistentFields is called.
*/
void MEDDataManager_i::markAsPersistent(CORBA::Long fieldHandlerId, bool persistent) {
- LOG("mark as persistant : id="<<fieldHandlerId);
+ LOG("mark as persistent : id="<<fieldHandlerId);
_fieldPersistencyMap[fieldHandlerId] = persistent;
}
_fieldName = fieldHandler->fieldname;
_mcFieldType = (MEDCoupling::TypeOfField) fieldHandler->type;
_pvFieldType = getPVFieldTypeString(_mcFieldType);
- _colorByType = _pvFieldType; // by default the same; overriden in DeflectionShape, VectorField, PointSprite and Contour
+ _colorByType = _pvFieldType; // by default the same; overridden in DeflectionShape, VectorField, PointSprite and Contour
_meshName = meshHandler->name;
}
#
# This file is a set of basic use case to test (from the python
-# context) the functions developped in the MEDCALC engine and the
+# context) the functions developed in the MEDCALC engine and the
# associated MEDCALC CORBA interface (MEDDataManager and
# MEDCalaculator).
#
# This is not the main CORBA component of the SALOME module MED
# (i.e. the engine associated to the active study), but the CORBA
# entry point for MED fields operations (i.e. a CORBA component
-# reachable throught the LifeCycleCORBA). This entry point is used to
+# reachable throughout the LifeCycleCORBA). This entry point is used to
# get the other SALOME CORBA components required for MED field
# operations, in particular the dataManager and the calculator
else
{
_ui.widgetDynamic->show();
- // It is the WidgetHelper responsability to re-show the widgets it needs
+ // It is the WidgetHelper responsibility to re-show the widgets it needs
_ui.labelCompo->hide();
_ui.comboBoxCompo->hide();
_ui.labelMeshMode->hide();
dataManager = medcalc.medcorba.factory.getDataManager()
# IMPORTANT NOTE:
-# the pyConsoleGlobals variable should hold the globals() dictionnary of
+# the pyConsoleGlobals variable should hold the globals() dictionary of
# the python console context
pyConsoleGlobals = None
#-----
# This function is to be called from the working python console to
-# specify the globals() dictionnary (used in fieldtools for stat analysis)
+# specify the globals() dictionary (used in fieldtools for stat analysis)
#
# >>> medcalc.setConsoleGlobals(globals())
#
# Try to define the event listener
connectEventListener()
if __eventListener is None:
- # it definitly does not work
+ # it definitely does not work
medcalc.wrn("the GUI is not loaded yet and will not be notified of the modification")
return False
# Load the image file in a numpy array using PIL.
img=Image.open(imageFilepath)
imgbw=ImageOps.grayscale(img)
- # WARN: We keep only the grayscale. Maybe, it could be usefull
+ # WARN: We keep only the grayscale. Maybe, it could be useful
# to get the RGB scales each on one component of the field.
# Creating a cartesian mesh with a grid of the size of the image
def createMesh(self, meshname, sizeX, sizeY):
"""
Creating a cartesian mesh with a grid of the size of the image.
- sizeX and sizeY should be respectively the width and heigth of the
+ sizeX and sizeY should be respectively the width and height of the
image.
"""
# >>>
notifyGui_addPresentation(meshID, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the mesh view:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the mesh view:\n" + e.details.text)
raise Exception(e.details.text)
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the scalar map:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the scalar map:\n" + e.details.text)
raise Exception(e.details.text)
def MakeContour(proxy,
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the contour:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the contour:\n" + e.details.text)
raise Exception(e.details.text)
#
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the vector field:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the vector field:\n" + e.details.text)
raise Exception(e.details.text)
def MakeSlices(proxy,
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the slices:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the slices:\n" + e.details.text)
raise Exception(e.details.text)
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the deflection shape:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the deflection shape:\n" + e.details.text)
raise Exception(e.details.text)
notifyGui_addPresentation(proxy.id, presentation_id)
return presentation_id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while creating the point sprite:\n" + e.details.text)
+ notifyGui_error("An error occurred while creating the point sprite:\n" + e.details.text)
raise Exception(e.details.text)
def RemovePresentation(presentation_id):
notifyGui_changeUnderlyingMesh(duplicate.id)
return duplicate.id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while changing underlying mesh:\n" + e.details.text)
+ notifyGui_error("An error occurred while changing underlying mesh:\n" + e.details.text)
raise Exception(e.details.text)
#
notifyGui_interpolateField(fieldHandler.id)
return fieldHandler.id
except SALOME.SALOME_Exception as e:
- notifyGui_error("An error occured while interpolating field:\n" + e.details.text)
+ notifyGui_error("An error occurred while interpolating field:\n" + e.details.text)
raise Exception(e.details.text)
#
return _name;
}
-// Return if the mesh name is equal to input or not, usefull for std::find for example
+// Return if the mesh name is equal to input or not, useful for std::find for example
bool MEDCalculatorBrowserMesh::operator==(const std::string& nm)
{
return _name==nm;
// str method
// Construct a std::string to print this time step, using std::cout for example
// Put x or o for selected or not
-// Add time step id value ( tiem value )
+// Add time step id value ( time value )
// Return a std::string
std::string MEDCalculatorBrowserStep::str()
{
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldReal::operator+ : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldReal::operator+ : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldReal::isEqual : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldReal::isEqual : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldReal::operator- : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldReal::operator- : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldReal::operator* : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldReal::operator* : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldReal::operator/ : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldReal::operator/ : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldCst::operator+ : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldCst::operator+ : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldCst::operator- : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldCst::operator- : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldCst::operator* : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldCst::operator* : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldCst::operator/ : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldCst::operator/ : unrecognized type of parameter received !");
}
}
return ret;
}
else
- throw INTERP_KERNEL::Exception("FieldCst::isEqual : unrecognized type of parameter recieved !");
+ throw INTERP_KERNEL::Exception("FieldCst::isEqual : unrecognized type of parameter received !");
}
}
return true;
}
std::size_t pos5=s.find_first_not_of(NUMBERS,pos4,10);
- if(pos5==pos4)//an another caracter found after : !
+ if(pos5==pos4)//an another character found after : !
return false;
std::string elt2;
if(pos5==std::string::npos)
ret << elt2;
result=ret.str();
std::size_t pos6=s.find_first_not_of(' ',pos5);
- if(pos6==pos5)//an another caracter found after 2nd elt !
+ if(pos6==pos5)//an another character found after 2nd elt !
return false;
return pos6==std::string::npos;
}
{
meshPtr->Register();
//1st call to getTinyInfo to get tiny array of key integers value
- //to corectly resize local copy of distant instance adressed by 'meshPtr'
+ //to corectly resize local copy of distant instance addressed by 'meshPtr'
//1st value of returned array is the type of instance. Thanks to
//CORBA and its type-check no use of this value is necessary.
SALOME_TYPES::ListOfDouble *tinyD;
public slots:
void openFile();// Create a new MedGUI_LiteStruct from a file and add content to QTreeWidgets
void meshesStateChange(QTreeWidgetItem*, int);// Change the select statement of one or more meshes, the item represents a mesh or a file
- void fieldsStateChange(QTreeWidgetItem*, int);// Change tje select statement of one or more fields, the item represents a mesh or a field or a step
+ void fieldsStateChange(QTreeWidgetItem*, int);// Change the select statement of one or more fields, the item represents a mesh or a field or a step
void fieldsStateChanges();
void sendSelectionToDB();
void unselectAll();// Unselec all fields and meshes