opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Andreas Adelmann <andreas.adelmann AT psi.ch>
- To: opal AT lists.psi.ch
- Subject: [Opal] Policies in for OPAL development
- Date: Wed, 24 Aug 2011 10:47:24 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/opal/>
- List-id: The OPAL Discussion Forum <opal.lists.psi.ch>
Dear Colleagues I would like to start a discussion on policies for the
future OPAL development. Please contribute.
H5 Error Handling Policy in OPAL
===========================
h5_int64_t rc;
rc = H5WriteFileAttribInt64(H5file_m, "nAutoPhaseCavities", &nAutopPhaseCavities, 1);
if(rc != H5_SUCCESS)
ERRORMSG("H5 rc= " << rc << " in " << __FILE__ << " @ line " << __LINE__ << endl);
If for example core 2 has a problem, you will be notified like this:
Error{+2}> H5 rc= -3 in /gpfs/homefelsim/adelmann/svnwork/OPAL/src/Structure/DataSink.cpp @ line 499
With the OPAL argument --error=0 you can disable all ERRORMSG's.
Memory Handling Policy in OPAL
===========================
Basic principe, every class has to cleanup the allocated memory, either immediately in the method or in the destructor.
However there are some exceptions (DataSink and PartBunch). Also the references in the global object OpalData
poses some problems (check out Main.cc ab the end of the file delete OPAL.getDataSink();)
Here we need a redesign in the near future.
Exception Handling Policy in OPAL
============================
t.b.d
Coding Style Policy in OPAL
=======================
t.b.d
Best Andreas
------
Dr. sc. math. Andreas (Andy) Adelmann
Staff Scientist
Paul Scherrer Institut WLGB/132 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Phone Home: xx41 62 891 91 44
-------------------------------------------------------
Friday: ETH CAB H 83.1 +41 44 632 36 72
============================================
The more exotic, the more abstract the knowledge,
the more profound will be its consequences.
Leon Lederman
============================================
------
Dr. sc. math. Andreas (Andy) Adelmann
Staff Scientist
Paul Scherrer Institut WLGB/132 CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Phone Home: xx41 62 891 91 44
-------------------------------------------------------
Friday: ETH CAB H 83.1 +41 44 632 36 72
============================================
The more exotic, the more abstract the knowledge,
the more profound will be its consequences.
Leon Lederman
============================================
- [Opal] Policies in for OPAL development, Andreas Adelmann, 08/24/2011
- Re: [Opal] Policies in for OPAL development, Yves Ineichen, 08/24/2011
Archive powered by MHonArc 2.6.19.