Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Error: invalid ELF header - Trying to call a Matlab function from COMSOL

$
0
0

Steps to get the error:

  1. From Ubuntu, I do start COMSOL as:

comsol -mlroot /usr/local/MATLAB/R2019b -forcegcc

  1. Within COMSOL, under the "Global definitions" node,

Functions = "/home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m".

Funtion name = seed_v_w

Arguments = v_e, beta_p, lambda_p, v_w_X0 -> (they are constants and they have all been declared as COMSOL Variables)

  1. basically the MATLAB function is : ( files attached for complete code)

function Xt = seedvw(ve, betap, lambdap, X0) ... ( stuff here) Xt = (....calculated value) end

  1. When I click on the COMSOL "Compute", the following error appears:
  • Feature: Compile Equations: Time Dependent (sol1/st1) Error in multiphysics compilation. Failed to load library.
  • Library: /home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m
  • Error: /home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m: invalid ELF header

Thank you in advance !


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>