-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Matlab 2017b #30
Comments
Hi @SA100, can you give us the output of atmexall? The main question is whether the mex functions get built correctly. |
Hello,
ATROOT =
Current directory: E:\Accelerator\AT12\simulator\element |
Ok, good, so the mexfunctions look like they are being created correctly. Any ideas for what to look for next, @lfarv or @carmignani or @simoneliuzzo ? |
I guess the thing to check is the map file. The integrators need to be able to find the entry points into the mex files (mexfunction, trackfunction or passfunction...) https://github.com/atcollab/at/blob/master/atintegrators/passFunctionMAC.map Actually I've always been a bit confused on this issue, but something about these map files are likely where the problem is. We solved this problem earlier, but I don't remember the solution at the moment. |
I think part of map file is ok but if I go back to 2.0 version, file talk.m output file after mex files are compiled gives the following with errors. Version 1.2 is not compatible as far as I can tell.
spear2rad example lattice definition file sp3v81loco not found. Use the Help browser search field to search the documentation, or ** Loading SPEAR lattice in spear2.m ** FAMLIST 1x27 58032 cell global ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
ans = struct with fields:
MAD output file: spear3_mad_structure.out MAD file type: STRUCTUR Warning: MAD lattice contains RF cavities
AT cell array was successfully created from MAD output file spear3_mad_structure.out For RF cavities READMAD creates elements that use DriftPass or IdentityPass (if Length ==0) ** Loading SPEAR lattice in spear2.m ** ans = struct with fields:
Reference to non-existent field 'R1'. Error in talk (line 35) |
Ok, so you are saying that AT is actually working in general, but this particular example isn't working? Can you get tracking to work with some of the other lattice files in |
Try some of the demos in |
Thank you so much for your time. Error in linepass (line 97) Error in findorbit4 (line 75) Error in findm44 (line 86) Error in latticedemo (line 125) |
Yes, so it does look like the integrator can't find the right entry point in the mex file. In case the basic tracking (ringpass) isn't working, then it probably is an issue with the map file that tells Matlab which entry points to look for in the mex functions. |
The simplest thing to try is to create an element, say using atquadrupole, then try StrMPoleSymplectic4Pass using the quadrupole as an argument. This will use the mex function entry point to the integrator. |
"missing MEX file" also suggests something about your path, or where the mex functions go. Can you check that the mex files were actually put in the atintegrators directory? Maybe you need to move them after the atmexall command. |
Hello, |
Hello, |
Compile issue was only for Linux. Windows doesn't appear to have the same symbol issue where the error was "No passFunction or trackFunction available". The "missing MEX" does appear to be a path issue. I suggest downloading 2.0, to a clean install by removing all other versions and trying again --> atpath; atmexall; atdiag; If the problem persists show us the result of >>path just to make sure the path is correct and points to atpass.mexw64 or atpass.mexw32 (depending on your OS). === WINDOWS (what I have currently) === |
For your info: |
Good to hear it @SA100 . |
I get --- AT was not installed correctly Installed in Matlab version 2017b.
Any compatibility issue? I used older 1.2 Version AT and also 2.0.
Thank you.
-sa
The text was updated successfully, but these errors were encountered: