Modularization using the Macroprocessor

Hi,

I’ve got a multi-country model for which each country has its own .mod file with country-specific parameters. I want to ask the macro-processor to read file i when solving i’s countrys model and file j when it’s j’s turn. How can I use @#include to make dynare read the appropriate file for each case?

In other words, I would need something like @#include “param_file_@#{co}.mod”

Thank you.

How about something like

@#define country="A" @#define filetoload="param_file_", country, ".mod"] @#include filetoload