Hello all,
Is there any way to bundle variables of different types in FreeFem++? Something like struct or class in C++ or MATLAB.
Thanks in advance.
Hello all,
Is there any way to bundle variables of different types in FreeFem++? Something like struct or class in C++ or MATLAB.
Thanks in advance.
You can create your own FreeFEM type which will be a C++ class under the hood. See FreeFem-sources/addNewType.cpp at develop · FreeFem/FreeFem-sources · GitHub.
Sorry, I’m new to C++ and FreeFEM, Could you please explain to me how to create a type like the following:
real Age=20;
string Name="Amir";
mytype.name=Name;
mytype.age=Age;
If you don’t know anything about C++, it will be difficult to explain it to you.