Skip to Content.
Sympa Menu

opal - Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"


Chronological Thread  
  • From: Chris Rogers <chris.rogers AT stfc.ac.uk>
  • To: opal AT lists.psi.ch
  • Subject: Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"
  • Date: Fri, 14 Jul 2023 08:04:48 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stfc.ac.uk; dmarc=pass action=none header.from=stfc.ac.uk; dkim=pass header.d=stfc.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IcXtNTAL+H+TotcBEvdbuAYZEq/40RrVEydtYtGzs6g=; b=gjqcuzq74iXEIwxQ3ILFFe5rv+cmA0Fe+dh1ixX0nXpwYPTVvo0DqXifVDjG/q+5VPCKadVj2iFnu4M9nfwPLRuvEYzutwx7Z31/ysSjy88cO8a1NQj83zuqMz5q+qDWxOdU56sgBfiXCgRXLfyQ4wuGw+VEhKU037DPvBp9bmMlRyluHKBgRdxkbrDfkQzI689VsEPpOhC4/teqw0A3r2CU7sUI5eJKLv/E1YVGsSdoOj+32yqec6/cPlBVxndncR2pIlAX+xFhJB2/FEoq9ARAqNj9+RdsNlfN46Mdns0z/FWT/rwTT9JY/UI4e5hxU85/s7MrL5Xd9mVuQT7FtA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fQ19oiz7jtK9nSg/1A0FFK7P1EMMLPt+7gk3mtN/vtcSzgW9V6WnnKXwCAmMxSLCy4w1XAAaHYk+xBNy8++spdfivBehj0hr0TO8asdf68Cv3fcMEXqPfYyQjLuC5o7Fb0Pew4Zsu13DCTB6o2vCwFl4xLM7Cw2ZIGuawqgWiIsCTX29NgpA4LGnGu0PZjuxh+2HJppxYWWjSYkLBwtktDzzopoFsTh4C7gdlftxQiQceS4TwjLc65MSX3tr68y3EvJuSS8fycqK/kUMJBoYMxPNppC4jUnybXMGBgPXEH6kx6G3VOOuM/W2leeFPfqchJsUiLD0fi1fHr3OtWBojQ==
  • Authentication-results: mc3.ethz.ch; iprev=pass (smtp-out6.electric.net) smtp.remote-ip=192.162.217.187; spf=pass smtp.mailfrom=stfc.ac.uk; dmarc=pass header.from=stfc.ac.uk
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=stfc.ac.uk;

Hi Dou,
Do you have a lattice file that I can look at? I will try to reproduce the issue.

Many thanks,
Chris

On 14/07/2023 07:53, Snuverink Jochem wrote:
Hi Dou

That looks like a bug to me. But has to be investigated more properly by the developer who wrote that.

The easiest solution is probably to Rebuild with cmake option:

-DCMAKE_BUILD_TYPE=Release

That will disable the asserts.

Best regards,
Jochem


------------------------------------------------------------------------
*Von:* opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> im Auftrag von Calvo Portela, Pedro <Pedro.Calvo AT ciemat.es>
*Gesendet:* Freitag, 14. Juli 2023 08:30
*An:* opal <opal AT lists.psi.ch>; Dou Guoliang <douguoliang AT impcas.ac.cn>
*Betreff:* Re: [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"

Hi Dou


I don't know the reason of your error with Dumpfields. However, Dumpfields and DumpEMFields have been modified in the last to release version of OPAL. Please check the following links:

https://gitlab.psi.ch/OPAL/src/-/issues/651 <https://gitlab.psi.ch/OPAL/src/-/issues/651>

https://gitlab.psi.ch/OPAL/src/-/issues/691 <https://gitlab.psi.ch/OPAL/src/-/issues/691>


In one of those issue, we fix the unit problem that you mention.


My suggestion is that you should use the last stable version of OPAL (OPAL-2022.1). Please try to run your simulation with this version and then let me know if your error still there.


Best regards

Pedro

------------------------------------------------
/Dr. Pedro Calvo Portela
Unidad de Aceleradores - CIEMAT
Avenida Complutense 40, Edificio 7
28040 Madrid
//Tel: +34 – 91 496 2554 / ext. 362542/
/
/
------------------------------------------------------------------------
*De:* opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> en nombre de Dou Guoliang <douguoliang AT impcas.ac.cn>
*Enviado:* jueves, 13 de julio de 2023 17:14
*Para:* opal
*Asunto:* [Opal] The problem of the command "DUMPEMFIELDS" and "DUMPFIELDS"

Hi ,all

When I use the command "DUMPFIELDS" and "DUMPEMFIELDS" , the *opal_2.4* shows the error */(annex 1)/*:

*/_Error> *** Error: _/*
*/_Error> Internal OPAL error: _/*
*/_Error> Assertion 'idx.i < num_gridpx_m - 1' failed. _/*
*/_Error> idx.i = 118, num_gridpx_m - 1 = 118.000000 _/*
*/_Error> in _/*
*/_Error> /afs/psi.ch/user/g/gsell/private/src/OPAL/src/src/Classic/Fields/FM3DH5BlockBase.h, line 163_/*

I have checked my inputfile ,and there is no wrong experssion. The detailed experssion is :

*DUMPEMFIELDS, COORDINATE_SYSTEM = Cartesian, X_START= -0.8, X_STEPS=1601, DX= 0.001, Y_START=-0.25, Y_STEPS=501, DY= 0.001, Z_START=-0.02, Z_STEPS=41, DZ=0.001, T_START=0,T_STEPS=1, DT=0.1 ,FILE_NAME="FIELDEM-MAPXYZ.dat";**__***

When I try to split the original output area of*X* into two parts, opal can output the corresponding two parts normally. First change X_STEPS to 117, and then change X_START and X_STPES  to -0.215 and 204.

And I re-ran another cyclotron simulation and got the same error, except */_idx.i _/*changed to 14 .

In addition, I found that the unit of position coordinates of command  "DUMPEMFIELDS" and "DUMPFIELDS" in the opal is defined as meters, but in fact, the table head of the output file shows the unit of position coordinates is millimeter.*/(annex 2)/*

Has anyone met this error?

Best regards,
Dou
*
*
*
*


Dou Guoliang
Institute of Modern Physics
Chines Academy of Science
douguoliang AT impcas.ac.cn

<https://urldefense.com/v3/__https://dashi.163.com/projects/signature-manager/detail/index.html?ftlId=1&name=Dou*Guoliang*28IMP*29&uid=1443003544*40qq.com&iconUrl=https*3A*2F*2Fmail-online.nosdn.127.net*2Fqiyelogo*2FdefaultAvatar.png&items=*5B*22*22*2C*22douguoliang*40impcas.ac.cn*22*2C*22*22*2C*22*22*2C*22*22*5D__;KyUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!D9dNQwwGXtA!WaE5SEu7FgdixkiB6pVjfnZJmpHjFBUfU2RSBBZ7ba18G6HYQhCU4AJiiD389SgxLEr15lcWGItmrMFxfCBvQJ2DMBHB$>



Archive powered by MHonArc 2.6.24.

Top of Page